Bugfix: stringify first parameter to Logger.xxx()
This commit is contained in:
parent
5b58c30011
commit
fac94d46a6
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "3.35.1",
|
"version": "3.35.2",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"url": "http://github.com/calzoneman/sync"
|
||||||
},
|
},
|
||||||
|
|
|
@ -71,7 +71,7 @@ class LegacyLogger extends JsliLogger {
|
||||||
|
|
||||||
log(level: LogLevel, ...args: any[]) {
|
log(level: LogLevel, ...args: any[]) {
|
||||||
var message: string = "[" + level.name + "] " + this.loggerName + ": ";
|
var message: string = "[" + level.name + "] " + this.loggerName + ": ";
|
||||||
message += sprintf(args[0], ...args.slice(1));
|
message += sprintf(String(args[0]), ...args.slice(1));
|
||||||
if (level.shouldLogAtLevel(LogLevel.ERROR)) {
|
if (level.shouldLogAtLevel(LogLevel.ERROR)) {
|
||||||
errlog.log(message);
|
errlog.log(message);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue