fixed a bug where if the first log arg was not a string it wouldn't get logged

This commit is contained in:
Gareth Jones
2011-07-22 12:28:02 +10:00
parent ec21ec63f0
commit 4b32456db7
2 changed files with 16 additions and 1 deletions

View File

@@ -41,6 +41,9 @@ function formatLogData(logData) {
if (data.length > 0) {
output += '\n';
}
} else {
//put it back, it's not a format string
data.unshift(format);
}
data.forEach(function (item) {