docs(log) help

making docs match command:
        name -> subsystem. Is the desired name?
This commit is contained in:
Brian Tiger Chow 2014-11-07 18:35:19 -08:00 committed by Juan Batiz-Benet
parent 48d65c6d95
commit 229b22f9c4

View File

@ -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 {