(d map[string]interface{})
| 165 | } |
| 166 | |
| 167 | func (t *cmdDashboard) handleLogLevel(d map[string]interface{}) { |
| 168 | c := t.newTopomClient() |
| 169 | |
| 170 | s := utils.ArgumentMust(d, "--log-level") |
| 171 | |
| 172 | var v log.LogLevel |
| 173 | if !v.ParseFromString(s) { |
| 174 | log.Panicf("option --log-level = %s", s) |
| 175 | } |
| 176 | |
| 177 | log.Debugf("call rpc loglevel to dashboard %s", t.addr) |
| 178 | if err := c.LogLevel(v); err != nil { |
| 179 | log.PanicErrorf(err, "call rpc loglevel to dashboard %s failed", t.addr) |
| 180 | } |
| 181 | log.Debugf("call rpc loglevel OK") |
| 182 | } |
| 183 | |
| 184 | func (t *cmdDashboard) handleShutdown(d map[string]interface{}) { |
| 185 | c := t.newTopomClient() |
no test coverage detected