MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / argsToLogString

Function argsToLogString

src/platform/logging/util.ts:31–44  ·  view source on GitHub ↗
(args: Arguments)

Source from the content-addressed store, hash-verified

29// Convert the given array of values (func call arguments) into a string
30// suitable to be used in a log message.
31export function argsToLogString(args: Arguments): string {
32 if (!args) {
33 return '';
34 }
35 try {
36 const argStrings = args.map((item, index) => {
37 const valueString = valueToLogString(item, 'argument');
38 return `Arg ${index + 1}: ${valueString}`;
39 });
40 return argStrings.join(', ');
41 } catch {
42 return '';
43 }
44}
45
46// Convert the given return value into a string
47// suitable to be used in a log message.

Callers 1

formatMessagesFunction · 0.90

Calls 3

valueToLogStringFunction · 0.85
mapMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected