MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / WSLog

Function WSLog

cli/pkg/common/websocket.go:330–337  ·  view source on GitHub ↗

* * description: ws接口日志记录器 * author: kenan * created on: 2021-04-08 上午11:20 * param param_1: * param param_2: * return return_1: */

(msg string, params ...interface{})

Source from the content-addressed store, hash-verified

328* return return_1:
329 */
330func WSLog(msg string, params ...interface{}) {
331 line, functionName := 0, "???"
332 pc, _, line, ok := runtime.Caller(1)
333 if ok {
334 functionName = runtime.FuncForPC(pc).Name()
335 }
336 SmartIDELog.ConsoleDebug(fmt.Sprintf("[WS] | %s:%d | %s\n", functionName, line, fmt.Sprintf(msg, params...)))
337}

Callers 2

connServerFunction · 0.85
SendAndReceiveFunction · 0.85

Calls 1

ConsoleDebugMethod · 0.80

Tested by

no test coverage detected