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

Function ignoreLogging

src/platform/logging/index.ts:290–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

288 };
289}
290export function ignoreLogging() {
291 return (
292 // eslint-disable-next-line @typescript-eslint/no-explicit-any
293 target: any,
294 methodName: string | symbol,
295 parameterIndex: number
296 ) => {
297 if (!formattedParameters.has(target)) {
298 formattedParameters.set(target, new Map<MethodName, ParameterLogInformation[]>());
299 }
300 let parameterInfos = formattedParameters.get(target);
301 if (!parameterInfos) {
302 formattedParameters.set(target, (parameterInfos = new Map<MethodName, ParameterLogInformation[]>()));
303 }
304 if (!parameterInfos.has(methodName)) {
305 parameterInfos.set(methodName, []);
306 }
307 const params = parameterInfos.get(methodName)!;
308 params.push({
309 parameterIndex,
310 ignore: true
311 });
312 };
313}
314function createTracingDecorator(logInfo: LogInfo) {
315 return traceDecorator(
316 (call, traced) => logResult(logInfo, traced, call),

Callers 4

ensureKernelIsUsableMethod · 0.90
launchAsObservableMethod · 0.90
shellExecMethod · 0.90

Calls 4

hasMethod · 0.65
setMethod · 0.65
getMethod · 0.65
pushMethod · 0.65

Tested by

no test coverage detected