File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 2.1.1 (2016-02-24)
2
+
3
+ Bug fix:
4
+
5
+ - If overriding the logging threshold dynamically, also pass this value back to the remote logging URL.
6
+
1
7
## 2.1.0 (2016-02-23)
2
8
3
9
Features:
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " app-logger-angular" ,
3
- "version" : " 2.1.0 " ,
3
+ "version" : " 2.1.1 " ,
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 @@ -94,6 +94,12 @@ loggingModule.factory(
94
94
var loggingThreshold = LOGGING_CONFIG . LOGGING_THRESHOLD || 'info' ;
95
95
var iLoggingThreshold = arrLoggingLevels . indexOf ( loggingThreshold ) ;
96
96
97
+ /*
98
+ * If we've told applicationLoggingService to override the logging threshold set in config then also pass
99
+ * it back to the remote client logging URL.
100
+ */
101
+ var overrideLoggingThreshold = false ;
102
+
97
103
var isLoggingEnabledForSeverity = function ( severity ) {
98
104
var iRequestedLevel = arrLoggingLevels . indexOf ( severity ) ;
99
105
if ( iRequestedLevel === - 1 ) {
@@ -131,7 +137,8 @@ loggingModule.factory(
131
137
type : severity ,
132
138
url : $window . location . href ,
133
139
message : message ,
134
- desc : desc
140
+ desc : desc ,
141
+ overrideLoggingThreshold : overrideLoggingThreshold
135
142
} )
136
143
} ) ;
137
144
}
@@ -161,6 +168,7 @@ loggingModule.factory(
161
168
*/
162
169
if ( arrLoggingLevels . indexOf ( level ) !== - 1 ) {
163
170
iLoggingThreshold = arrLoggingLevels . indexOf ( level ) ;
171
+ overrideLoggingThreshold = true ;
164
172
}
165
173
}
166
174
} ) ;
You can’t perform that action at this time.
0 commit comments