@@ -91,10 +91,10 @@ loggingModule.factory(
91
91
"applicationLoggingService" ,
92
92
[ "$log" , "$window" , "LOGGING_CONFIG" , function ( $log , $window , LOGGING_CONFIG ) {
93
93
return ( {
94
- error : function ( message ) {
94
+ error : function ( message , desc ) {
95
95
if ( LOGGING_CONFIG . LOGGING_TYPE !== 'none' ) {
96
96
// preserve default behaviour
97
- $log . error . apply ( $log , arguments ) ;
97
+ $log . error . apply ( $log , [ message ] ) ;
98
98
}
99
99
100
100
// check if the config says we should log to the remote, and also if a remote endpoint was specified
@@ -107,15 +107,16 @@ loggingModule.factory(
107
107
data : angular . toJson ( {
108
108
url : $window . location . href ,
109
109
message : message ,
110
- type : "error"
110
+ type : "error" ,
111
+ desc : desc
111
112
} )
112
113
} ) ;
113
114
}
114
115
} ,
115
- debug : function ( message ) {
116
+ debug : function ( message , desc ) {
116
117
if ( LOGGING_CONFIG . LOGGING_LEVEL !== 'error' ) {
117
118
if ( LOGGING_CONFIG . LOGGING_TYPE !== 'none' ) {
118
- $log . log . apply ( $log , arguments ) ;
119
+ $log . log . apply ( $log , [ message ] ) ;
119
120
}
120
121
121
122
// check if the config says we should log to the remote, and also if a remote endpoint was specified
@@ -127,7 +128,8 @@ loggingModule.factory(
127
128
data : angular . toJson ( {
128
129
url : $window . location . href ,
129
130
message : message ,
130
- type : "debug"
131
+ type : "debug" ,
132
+ desc : desc
131
133
} )
132
134
} ) ;
133
135
}
@@ -161,4 +163,4 @@ loggingModule.factory(
161
163
}
162
164
} ) ;
163
165
} ]
164
- ) ;
166
+ ) ;
0 commit comments