()
| 288 | }; |
| 289 | } |
| 290 | export 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 | } |
| 314 | function createTracingDecorator(logInfo: LogInfo) { |
| 315 | return traceDecorator( |
| 316 | (call, traced) => logResult(logInfo, traced, call), |
no test coverage detected