Skip to content

Commit be8d8e3

Browse files
committed
Change logLevel in isSetup from error to warn. Error stops processing, and perhaps should be prohibited by logDebug. Fixes functionnal proble with the merge of getsentry#364
1 parent 5cececa commit be8d8e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/raven.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ function isSetup() {
787787
if (!hasJSON) return false; // needs JSON support
788788
if (!globalServer) {
789789
if (!ravenNotConfiguredError)
790-
logDebug('error', 'Error: Raven has not been configured.');
790+
logDebug('warn', 'Warning: Raven has not been configured.');
791791
ravenNotConfiguredError = true;
792792
return false;
793793
}

test/raven.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ describe('globals', function() {
308308
globalServer = undefined;
309309
isSetup();
310310
isSetup();
311-
assert.isTrue(window.logDebug.calledWith('error', 'Error: Raven has not been configured.'))
311+
assert.isTrue(window.logDebug.calledWith('warn', 'Warning: Raven has not been configured.'))
312312
assert.isTrue(window.logDebug.calledOnce);
313313
});
314314
});

0 commit comments

Comments
 (0)