fix log level (#539)

This commit is contained in:
Dima 2022-07-13 13:47:46 +03:00 committed by GitHub
parent 792e174641
commit e0cb5d8317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ object GeneralRunOptions {
): Opts[GeneralRunOptions] =
(
AppOpts.wrapWithOption(timeoutOpt),
logLevelOpt.withDefault(LogLevels()),
logLevelOpt,
multiaddrOpt,
onOpt,
flagsOpt(isRun),

View File

@ -124,8 +124,8 @@ object FluenceOpts {
.withDefault(false)
val logLevelOpt: Opts[LogLevels] =
Opts.option[String]("log-level", help = "Set log level").withDefault("info").mapValidated {
Opts.option[String]("log-level", help = "Set log level").mapValidated {
str =>
LogLevels.fromString(str)
}
}.withDefault(LogLevels())
}