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) {
681681function isSetup ( ) {
682682 if ( ! hasJSON ) return false ; // needs JSON support
683683 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.' ) ;
687685 return false ;
688686 }
689687 return true ;
@@ -720,6 +718,12 @@ function uuid4() {
720718 } ) ;
721719}
722720
721+ function logDebug ( level , message ) {
722+ if ( window . console && console [ level ] && Raven . debug ) {
723+ console [ level ] ( message ) ;
724+ }
725+ }
726+
723727function afterLoad ( ) {
724728 // Attempt to initialize Raven on load
725729 var RavenConfig = window . RavenConfig ;
You can’t perform that action at this time.
0 commit comments