From 23ba06cbb70bebd9c19f1ad16f464b138b6c255a Mon Sep 17 00:00:00 2001 From: Hector Hernandez <39923391+hectorhdzg@users.noreply.github.com> Date: Fri, 5 Jul 2024 13:43:09 -0700 Subject: [PATCH] Fix iisue with ETW log generation --- src/agent/diagnostics/writers/etwWritter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/diagnostics/writers/etwWritter.ts b/src/agent/diagnostics/writers/etwWritter.ts index 899952b86..f5e4134e1 100644 --- a/src/agent/diagnostics/writers/etwWritter.ts +++ b/src/agent/diagnostics/writers/etwWritter.ts @@ -25,7 +25,7 @@ export class EtwWritter implements IAgentLogger { } } - public log(message?: any, ...optional: any[]) { + public log(message: string, optional?: string[]) { if(this._etwModule){ // eslint-disable-next-line @typescript-eslint/ban-types (this._etwModule.logInfoEvent as Function)(message, ...optional); @@ -35,7 +35,7 @@ export class EtwWritter implements IAgentLogger { } } - public error(message?: any, ...optional: any[]) { + public error(message: string, optional?: string[]) { if(this._etwModule){ // eslint-disable-next-line @typescript-eslint/ban-types (this._etwModule.logErrEvent as Function)(message, ...optional);