MCPcopy Create free account
hub / github.com/DNAProject/DNA / SetDebugInfo

Function SetDebugInfo

http/base/rpc/local_interfaces.go:113–127  ·  view source on GitHub ↗
(params []interface{})

Source from the content-addressed store, hash-verified

111}
112
113func 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}

Callers

nothing calls this directly

Calls 2

responsePackFunction · 0.85
SetDebugLevelMethod · 0.80

Tested by

no test coverage detected