Skip to content

Commit c2f329b

Browse files
authored
fix: Unahdled exception in adding a custom logger
Fix #6
1 parent d68b499 commit c2f329b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/abstract.logger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ export abstract class AbstractLogger {
6767
if (tmpLogger.LoggerIdentity === this.LoggerIdentity)
6868
return true;
6969
tmpLogger = tmpLogger.NextLogger;
70-
} while (tmpLogger !== null || tmpLogger !== undefined)
70+
} while (tmpLogger !== null && tmpLogger !== undefined)
7171
return false;
7272
}
7373

7474
abstract processEvent(source: string, eventName: string, properties: any);
7575
abstract processException(source, error: Error, properties: any);
76-
}
76+
}

0 commit comments

Comments
 (0)