only enable libp2p logs when trace level logging (#3680)

This commit is contained in:
Preston Van Loon 2019-10-01 08:38:21 -07:00 committed by GitHub
parent 87f0581742
commit f78d6e66b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ func startNode(ctx *cli.Context) error {
return err
}
logrus.SetLevel(level)
if level == logrus.DebugLevel {
if level == logrus.TraceLevel {
golog.SetAllLoggers(gologging.DEBUG)
}

View File

@ -9,7 +9,7 @@ var (
// VerbosityFlag defines the logrus configuration.
VerbosityFlag = cli.StringFlag{
Name: "verbosity",
Usage: "Logging verbosity (debug, info=default, warn, error, fatal, panic)",
Usage: "Logging verbosity (trace, debug, info=default, warn, error, fatal, panic)",
Value: "info",
}
// DataDirFlag defines a path on disk.