(cliContext *cli.Context, config *srvconfig.Config)
| 350 | } |
| 351 | |
| 352 | func setLogLevel(cliContext *cli.Context, config *srvconfig.Config) error { |
| 353 | l := cliContext.String("log-level") |
| 354 | if l == "" { |
| 355 | l = config.Debug.Level |
| 356 | } |
| 357 | if l != "" { |
| 358 | return log.SetLevel(l) |
| 359 | } |
| 360 | return nil |
| 361 | } |
| 362 | |
| 363 | func setLogFormat(config *srvconfig.Config) error { |
| 364 | f := log.OutputFormat(config.Debug.Format) |
no test coverage detected
searching dependent graphs…