Skip to content

Commit b19d57f

Browse files
authored
Merge pull request #7199 from djdv/fix/log-docstring
update log helptext to match actual levels
2 parents 943d6bc + 048adad commit b19d57f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

core/commands/log.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ output of a running daemon.
2424
2525
There are also two environmental variables that direct the logging
2626
system (not just for the daemon logs, but all commands):
27-
IPFS_LOGGING - sets the level of verbosity of the logging. One of: debug, info, warning, error, critical
28-
IPFS_LOGGING_FMT - sets formatting of the log output. One of: color, nocolor
27+
IPFS_LOGGING - sets the level of verbosity of the logging.
28+
One of: debug, info, warn, error, dpanic, panic, fatal
29+
IPFS_LOGGING_FMT - sets formatting of the log output.
30+
One of: color, nocolor
2931
`,
3032
},
3133

@@ -49,8 +51,8 @@ the event log.
4951
// TODO use a different keyword for 'all' because all can theoretically
5052
// clash with a subsystem name
5153
cmds.StringArg("subsystem", true, false, fmt.Sprintf("The subsystem logging identifier. Use '%s' for all subsystems.", logAllKeyword)),
52-
cmds.StringArg("level", true, false, `The log level, with 'debug' the most verbose and 'critical' the least verbose.
53-
One of: debug, info, warning, error, critical.
54+
cmds.StringArg("level", true, false, `The log level, with 'debug' the most verbose and 'fatal' the least verbose.
55+
One of: debug, info, warn, error, dpanic, panic, fatal.
5456
`),
5557
},
5658
Run: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error {

0 commit comments

Comments
 (0)