File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " app-logger-angular" ,
3
- "version" : " 2.1.7 " ,
3
+ "version" : " 2.1.8 " ,
4
4
"main" : " ./js/logging.js" ,
5
5
"description" : " Client side logging sent to the server" ,
6
6
"repository" : {
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ loggingModule.factory(
118
118
return ( iRequestedLevel >= iLoggingThreshold ) ;
119
119
} ;
120
120
121
- var log = function ( severity , message , desc ) {
121
+ var log = function ( severity , message , desc , sendToNewRelic ) {
122
122
if ( ! isLoggingEnabledForSeverity ( severity ) ) {
123
123
return ;
124
124
}
@@ -139,7 +139,7 @@ loggingModule.factory(
139
139
}
140
140
}
141
141
142
- if ( LOGGING_CONFIG . FORWARD_TO_NEWRELIC && $window . NREUM && $window . NREUM . noticeError ) {
142
+ if ( sendToNewRelic && $window . NREUM && $window . NREUM . noticeError ) {
143
143
$window . NREUM . noticeError ( message , { desc : desc } ) ;
144
144
}
145
145
@@ -181,7 +181,8 @@ loggingModule.factory(
181
181
log ( 'warn' , message , desc ) ;
182
182
} ,
183
183
error : function ( message , desc ) {
184
- log ( 'error' , message , desc ) ;
184
+ var sendToNewRelic = LOGGING_CONFIG . FORWARD_TO_NEWRELIC && $window . NREUM && $window . NREUM . noticeError ;
185
+ log ( 'error' , message , desc , sendToNewRelic ) ;
185
186
} ,
186
187
setLoggingThreshold : function ( level ) {
187
188
/*
You can’t perform that action at this time.
0 commit comments