Skip to content

Commit

Permalink
fix: Unahdled exception in adding a custom logger
Browse files Browse the repository at this point in the history
Fix #6
  • Loading branch information
patrickCode authored Jan 27, 2021
1 parent d68b499 commit c2f329b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/abstract.logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ export abstract class AbstractLogger {
if (tmpLogger.LoggerIdentity === this.LoggerIdentity)
return true;
tmpLogger = tmpLogger.NextLogger;
} while (tmpLogger !== null || tmpLogger !== undefined)
} while (tmpLogger !== null && tmpLogger !== undefined)
return false;
}

abstract processEvent(source: string, eventName: string, properties: any);
abstract processException(source, error: Error, properties: any);
}
}

0 comments on commit c2f329b

Please sign in to comment.