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
229b22f9
Commit
229b22f9
authored
Nov 07, 2014
by
Brian Tiger Chow
Committed by
Juan Batiz-Benet
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(log) help
making docs match command: name -> subsystem. Is the desired name?
parent
48d65c6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
core/commands2/log.go
core/commands2/log.go
+9
-1
No files found.
core/commands2/log.go
View file @
229b22f9
...
...
@@ -12,7 +12,15 @@ var logCmd = &cmds.Command{
cmds
.
Argument
{
"subsystem"
,
cmds
.
ArgString
,
true
,
false
},
cmds
.
Argument
{
"level"
,
cmds
.
ArgString
,
true
,
false
},
},
Help
:
"TODO"
,
// TODO UsageLine: "log <name> <level> ",
// TODO Short: "switch logging levels of a running daemon",
Help
:
`ipfs log <subsystem> <level> - switch logging levels of a running daemon
<subsystem> is a the subsystem logging identifier. Use * for all subsystems.
<level> is one of: debug, info, notice, warning, error, critical
ipfs log is a utility command used to change the logging output of a running daemon.
`
,
Run
:
func
(
res
cmds
.
Response
,
req
cmds
.
Request
)
{
args
:=
req
.
Arguments
()
if
err
:=
u
.
SetLogLevel
(
args
[
0
]
.
(
string
),
args
[
1
]
.
(
string
));
err
!=
nil
{
...
...
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