Skip to content

Commit

Permalink
Fix iisue with ETW log generation (#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorhdzg authored Jul 5, 2024
1 parent 6e0b8d3 commit f5ffecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agent/diagnostics/writers/etwWritter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit f5ffecd

Please sign in to comment.