mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
fixed extra output for ls-* commands
This commit is contained in:
parent
291304af75
commit
5ff27b9e3d
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ var (
|
|||
)
|
||||
|
||||
func init() {
|
||||
if APIJWTSecret == nil {
|
||||
if APIJWTSecret == nil && GetArgs().Command == CommandStart {
|
||||
log.Warn().Msg("API JWT secret is empty, authentication is disabled")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ func init() {
|
|||
).Level(level).With().Timestamp().Logger()
|
||||
}
|
||||
|
||||
func DiscardLogger() { logger = zerolog.Nop() }
|
||||
func DiscardLogger() { zerolog.SetGlobalLevel(zerolog.Disabled) }
|
||||
|
||||
func AddHook(h zerolog.Hook) { logger = logger.Hook(h) }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue