Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
b19d57fb
Unverified
Commit
b19d57fb
authored
Apr 24, 2020
by
Steven Allen
Committed by
GitHub
Apr 24, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7199 from djdv/fix/log-docstring
update log helptext to match actual levels
parents
943d6bca
048adadb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
core/commands/log.go
core/commands/log.go
+6
-4
No files found.
core/commands/log.go
View file @
b19d57fb
...
@@ -24,8 +24,10 @@ output of a running daemon.
...
@@ -24,8 +24,10 @@ output of a running daemon.
There are also two environmental variables that direct the logging
There are also two environmental variables that direct the logging
system (not just for the daemon logs, but all commands):
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.
IPFS_LOGGING_FMT - sets formatting of the log output. One of: color, nocolor
One of: debug, info, warn, error, dpanic, panic, fatal
IPFS_LOGGING_FMT - sets formatting of the log output.
One of: color, nocolor
`
,
`
,
},
},
...
@@ -49,8 +51,8 @@ the event log.
...
@@ -49,8 +51,8 @@ the event log.
// TODO use a different keyword for 'all' because all can theoretically
// TODO use a different keyword for 'all' because all can theoretically
// clash with a subsystem name
// clash with a subsystem name
cmds
.
StringArg
(
"subsystem"
,
true
,
false
,
fmt
.
Sprintf
(
"The subsystem logging identifier. Use '%s' for all subsystems."
,
logAllKeyword
)),
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 '
critic
al' the least verbose.
cmds
.
StringArg
(
"level"
,
true
,
false
,
`The log level, with 'debug' the most verbose and '
fat
al' the least verbose.
One of: debug, info, warn
ing
, error,
critic
al.
One of: debug, info, warn, error,
dpanic, panic, fat
al.
`
),
`
),
},
},
Run
:
func
(
req
*
cmds
.
Request
,
res
cmds
.
ResponseEmitter
,
env
cmds
.
Environment
)
error
{
Run
:
func
(
req
*
cmds
.
Request
,
res
cmds
.
ResponseEmitter
,
env
cmds
.
Environment
)
error
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment