(params []interface{})
| 111 | } |
| 112 | |
| 113 | func SetDebugInfo(params []interface{}) map[string]interface{} { |
| 114 | if len(params) < 1 { |
| 115 | return responsePack(berr.INVALID_PARAMS, "") |
| 116 | } |
| 117 | switch params[0].(type) { |
| 118 | case float64: |
| 119 | level := params[0].(float64) |
| 120 | if err := log.Log.SetDebugLevel(int(level)); err != nil { |
| 121 | return responsePack(berr.INVALID_PARAMS, "") |
| 122 | } |
| 123 | default: |
| 124 | return responsePack(berr.INVALID_PARAMS, "") |
| 125 | } |
| 126 | return responsePack(berr.SUCCESS, true) |
| 127 | } |
nothing calls this directly
no test coverage detected