# HG changeset patch # User cin # Date 2018-11-15 10:02:48 # Node ID 9b7927c5bafc1c80e589d9feb807e428075ef513 # Parent 1ef775e96c17d10406ba86479b6fc077657123ee fixed trace messages formatting diff --git a/gradle.properties b/gradle.properties --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version=1.0.4 +version=1.1.1 release=rtm \ No newline at end of file diff --git a/package-lock.json b/package-lock.json --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ }, "@types/tape": { "version": "4.2.32", - "resolved": "https://registry.npmjs.org/@types/tape/-/tape-4.2.32.tgz", + "resolved": "http://registry.npmjs.org/@types/tape/-/tape-4.2.32.tgz", "integrity": "sha512-xil0KO5wkPoixdBWGIGolPv9dekf6dVkjjJLAFYchfKcd4DICou67rgGCIO7wAh3i5Ff/6j9IDgZz+GU9cMaqQ==", "dev": true, "requires": { @@ -413,9 +413,9 @@ } }, "typescript": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.0.3.tgz", - "integrity": "sha512-kk80vLW9iGtjMnIv11qyxLqZm20UklzuR2tL0QAnDIygIUIemcZMxlMWudl9OOt76H3ntVzcTiddQ1/pAAJMYg==", + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.1.6.tgz", + "integrity": "sha512-tDMYfVtvpb96msS1lDX9MEdHrW4yOuZ4Kdc4Him9oU796XldPYF/t2+uKoX0BBa0hXXwDlqYQbXY5Rzjzc5hBA==", "dev": true }, "wrappy": { diff --git a/src/ts/log/TraceSource.ts b/src/ts/log/TraceSource.ts --- a/src/ts/log/TraceSource.ts +++ b/src/ts/log/TraceSource.ts @@ -106,7 +106,7 @@ export class TraceSource { debug(msg: string, ...args: any[]) { if (this.isEnabled(DebugLevel)) - this.emit(DebugLevel, format(msg, args)); + this.emit(DebugLevel, format.apply(null, arguments)); } isLogEnabled() { @@ -115,7 +115,7 @@ export class TraceSource { log(msg: string, ...args: any[]) { if (this.isEnabled(LogLevel)) - this.emit(LogLevel, format(msg, args)); + this.emit(LogLevel, format.apply(null, arguments)); } isWarnEnabled() { @@ -124,7 +124,7 @@ export class TraceSource { warn(msg: string, ...args: any[]) { if (this.isEnabled(WarnLevel)) - this.emit(WarnLevel, format(msg, args)); + this.emit(WarnLevel, format.apply(null, arguments)); } /** @@ -142,7 +142,7 @@ export class TraceSource { */ error(msg: string, ...args: any[]) { if (this.isEnabled(ErrorLevel)) - this.emit(ErrorLevel, format(msg, args)); + this.emit(ErrorLevel, format.apply(null, arguments)); } /**