Disabling logs support added.

This commit is contained in:
Musab Gültekin
2019-06-09 19:14:46 +03:00
parent b973c1c064
commit 7abc7a370d
3 changed files with 9 additions and 1 deletions

View File

@ -62,6 +62,9 @@ func NewGeziyor(opt Options) *Geziyor {
if opt.UserAgent == "" {
geziyor.opt.UserAgent = "Geziyor 1.0"
}
if opt.LogDisabled {
log.SetOutput(ioutil.Discard)
}
return geziyor
}