mirror of https://github.com/calzoneman/sync.git
Bugfix: stringify first parameter to Logger.xxx()
This commit is contained in:
parent
5b58c30011
commit
fac94d46a6
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue