diff --git a/src/common/abstract.logger.ts b/src/common/abstract.logger.ts index 963bc35..b7f95e9 100644 --- a/src/common/abstract.logger.ts +++ b/src/common/abstract.logger.ts @@ -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); -} \ No newline at end of file +}