Skip to content

Commit ef31034

Browse files
author
Mark Wallsgrove
committed
Small fix for sending arguments to the log
1 parent 5856aae commit ef31034

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/logging.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ loggingModule.factory(
9494
error: function(message, desc){
9595
if (LOGGING_CONFIG.LOGGING_TYPE !== 'none') {
9696
// preserve default behaviour
97-
$log.error.apply($log, message);
97+
$log.error.apply($log, [message]);
9898
}
9999

100100
// check if the config says we should log to the remote, and also if a remote endpoint was specified
@@ -116,7 +116,7 @@ loggingModule.factory(
116116
debug: function(message, desc){
117117
if (LOGGING_CONFIG.LOGGING_LEVEL !== 'error') {
118118
if (LOGGING_CONFIG.LOGGING_TYPE !== 'none') {
119-
$log.log.apply($log, message);
119+
$log.log.apply($log, [message]);
120120
}
121121

122122
// check if the config says we should log to the remote, and also if a remote endpoint was specified

0 commit comments

Comments
 (0)