From 05d0573e0254dfd914a1b87b7b36637b2070af4d Mon Sep 17 00:00:00 2001 From: Dominic Della Valle Date: Wed, 22 Apr 2020 21:02:12 -0400 Subject: [PATCH 1/2] update log helptext to match actual levels --- core/commands/log.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/commands/log.go b/core/commands/log.go index 7d9fb48db18..6d36a8ab5df 100644 --- a/core/commands/log.go +++ b/core/commands/log.go @@ -24,7 +24,7 @@ output of a running daemon. There are also two environmental variables that direct the logging system (not just for the daemon logs, but all commands): - IPFS_LOGGING - sets the level of verbosity of the logging. One of: debug, info, warning, error, critical + IPFS_LOGGING - sets the level of verbosity of the logging. One of: debug, info, warn, error, dpanic, panic, fatal IPFS_LOGGING_FMT - sets formatting of the log output. One of: color, nocolor `, }, @@ -49,8 +49,8 @@ the event log. // TODO use a different keyword for 'all' because all can theoretically // clash with a subsystem name cmds.StringArg("subsystem", true, false, fmt.Sprintf("The subsystem logging identifier. Use '%s' for all subsystems.", logAllKeyword)), - cmds.StringArg("level", true, false, `The log level, with 'debug' the most verbose and 'critical' the least verbose. - One of: debug, info, warning, error, critical. + cmds.StringArg("level", true, false, `The log level, with 'debug' the most verbose and 'fatal' the least verbose. + One of: debug, info, warn, error, dpanic, panic, fatal. `), }, Run: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error { From 048adadb5ee82376a0abf37500385fbc08887766 Mon Sep 17 00:00:00 2001 From: Dominic Della Valle Date: Fri, 24 Apr 2020 12:13:00 -0400 Subject: [PATCH 2/2] reformat log helptext (80 char width) --- core/commands/log.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/commands/log.go b/core/commands/log.go index 6d36a8ab5df..ff560ae4bd8 100644 --- a/core/commands/log.go +++ b/core/commands/log.go @@ -24,8 +24,10 @@ output of a running daemon. There are also two environmental variables that direct the logging system (not just for the daemon logs, but all commands): - IPFS_LOGGING - sets the level of verbosity of the logging. One of: debug, info, warn, error, dpanic, panic, fatal - IPFS_LOGGING_FMT - sets formatting of the log output. One of: color, nocolor + IPFS_LOGGING - sets the level of verbosity of the logging. + One of: debug, info, warn, error, dpanic, panic, fatal + IPFS_LOGGING_FMT - sets formatting of the log output. + One of: color, nocolor `, },