mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-01 06:17:56 +08:00
docs(log) help
making docs match command:
name -> subsystem. Is the desired name?
This commit is contained in:
parent
48d65c6d95
commit
229b22f9c4
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user