File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -681,9 +681,7 @@ function makeRequest(data) {
681
681
function isSetup ( ) {
682
682
if ( ! hasJSON ) return false ; // needs JSON support
683
683
if ( ! globalServer ) {
684
- if ( window . console && console . error && Raven . debug ) {
685
- console . error ( "Error: Raven has not been configured." ) ;
686
- }
684
+ logDebug ( 'error' , 'Error: Raven has not been configured.' ) ;
687
685
return false ;
688
686
}
689
687
return true ;
@@ -720,6 +718,12 @@ function uuid4() {
720
718
} ) ;
721
719
}
722
720
721
+ function logDebug ( level , message ) {
722
+ if ( window . console && console [ level ] && Raven . debug ) {
723
+ console [ level ] ( message ) ;
724
+ }
725
+ }
726
+
723
727
function afterLoad ( ) {
724
728
// Attempt to initialize Raven on load
725
729
var RavenConfig = window . RavenConfig ;
You can’t perform that action at this time.
0 commit comments