disable logging for reflection
This commit is contained in:
parent
8d650e032c
commit
4e2efec66e
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@ import (
|
||||||
"github.com/lbryio/reflector.go/db"
|
"github.com/lbryio/reflector.go/db"
|
||||||
"github.com/lbryio/reflector.go/reflector"
|
"github.com/lbryio/reflector.go/reflector"
|
||||||
"github.com/lbryio/reflector.go/store"
|
"github.com/lbryio/reflector.go/store"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/lbryio/ytsync/util"
|
"github.com/lbryio/ytsync/util"
|
||||||
)
|
)
|
||||||
|
@ -53,7 +54,8 @@ func reflectBlobs() error {
|
||||||
if running {
|
if running {
|
||||||
return errors.Prefix("cannot reflect blobs as the daemon is running", err)
|
return errors.Prefix("cannot reflect blobs as the daemon is running", err)
|
||||||
}
|
}
|
||||||
|
logrus.SetLevel(logrus.InfoLevel)
|
||||||
|
defer logrus.SetLevel(logrus.DebugLevel)
|
||||||
ex, err := os.Executable()
|
ex, err := os.Executable()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Err(err)
|
return errors.Err(err)
|
||||||
|
|
Loading…
Reference in a new issue