Bugfix: stringify first parameter to Logger.xxx()

This commit is contained in:
Calvin Montgomery 2017-04-27 21:06:16 -07:00
parent 5b58c30011
commit fac94d46a6
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "3.35.1",
"version": "3.35.2",
"repository": {
"url": "http://github.com/calzoneman/sync"
},

View File

@ -71,7 +71,7 @@ class LegacyLogger extends JsliLogger {
log(level: LogLevel, ...args: any[]) {
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)) {
errlog.log(message);
} else {