(methodName: string, durationStr: string, args: any[])
| 72 | } |
| 73 | |
| 74 | function 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 | |
| 91 | function wpsSubscribeToObject(oref: string): () => void { |
| 92 | return waveEventSubscribeSingle({ |
no outgoing calls
no test coverage detected