MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / debugLogBackendCall

Function debugLogBackendCall

frontend/app/store/wos.ts:74–89  ·  view source on GitHub ↗
(methodName: string, durationStr: string, args: any[])

Source from the content-addressed store, hash-verified

72}
73
74function debugLogBackendCall(methodName: string, durationStr: string, args: any[]) {
75 durationStr = "| " + durationStr;
76 if (methodName == "object.UpdateObject" && args.length > 0) {
77 console.log("[service] object.UpdateObject", args[0].otype, args[0].oid, durationStr, args[0]);
78 return;
79 }
80 if (methodName == "object.GetObject" && args.length > 0) {
81 console.log("[service] object.GetObject", args[0], durationStr);
82 return;
83 }
84 if (methodName == "file.StatFile" && args.length >= 2) {
85 console.log("[service] file.StatFile", args[1], durationStr);
86 return;
87 }
88 console.log("[service]", methodName, durationStr);
89}
90
91function wpsSubscribeToObject(oref: string): () => void {
92 return waveEventSubscribeSingle({

Callers 1

callBackendServiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected