MCPcopy
hub / github.com/wavetermdev/waveterm / Log

Method Log

pkg/wshrpc/wshremote/wshremote.go:60–66  ·  view source on GitHub ↗
(format string, args ...interface{})

Source from the content-addressed store, hash-verified

58func (*ServerImpl) WshServerImpl() {}
59
60func (impl *ServerImpl) Log(format string, args ...interface{}) {
61 if impl.LogWriter != nil {
62 fmt.Fprintf(impl.LogWriter, format, args...)
63 } else {
64 log.Printf(format, args...)
65 }
66}
67
68func (impl *ServerImpl) MessageCommand(ctx context.Context, data wshrpc.CommandMessageData) error {
69 impl.Log("[message] %q\n", data.Message)

Callers 5

MessageCommandMethod · 0.95
ConnServerInitCommandMethod · 0.95
TestParseURI_WSHWSLFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestParseURI_WSHWSLFunction · 0.64