Skip to content

Commit

Permalink
fix: console logging not honoring setting (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Wolff committed Dec 3, 2019
1 parent 24d48ea commit 2885334
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class DiagnosticLogger implements IDiagnosticLogger {
// check if this message type was already logged to console for this page view and if so, don't log it again
const messageKey: number = +message.messageId;

if (!_this._messageLogged[messageKey] || _this.consoleLoggingLevel() >= LoggingSeverity.WARNING) {
if (!_this._messageLogged[messageKey] && _this.consoleLoggingLevel() >= LoggingSeverity.WARNING) {
_this.warnToConsole(message.message);
_this._messageLogged[messageKey] = true;
}
Expand Down

0 comments on commit 2885334

Please sign in to comment.