##// END OF EJS Templates
fixed trace messages formatting
cin -
r35:9b7927c5bafc v1.1.1 default
parent child
Show More
@@ -1,2 +1,2
1 version=1.0.4
1 version=1.1.1
2 release=rtm No newline at end of file
2 release=rtm
@@ -12,7 +12,7
12 },
12 },
13 "@types/tape": {
13 "@types/tape": {
14 "version": "4.2.32",
14 "version": "4.2.32",
15 "resolved": "https://registry.npmjs.org/@types/tape/-/tape-4.2.32.tgz",
15 "resolved": "http://registry.npmjs.org/@types/tape/-/tape-4.2.32.tgz",
16 "integrity": "sha512-xil0KO5wkPoixdBWGIGolPv9dekf6dVkjjJLAFYchfKcd4DICou67rgGCIO7wAh3i5Ff/6j9IDgZz+GU9cMaqQ==",
16 "integrity": "sha512-xil0KO5wkPoixdBWGIGolPv9dekf6dVkjjJLAFYchfKcd4DICou67rgGCIO7wAh3i5Ff/6j9IDgZz+GU9cMaqQ==",
17 "dev": true,
17 "dev": true,
18 "requires": {
18 "requires": {
@@ -413,9 +413,9
413 }
413 }
414 },
414 },
415 "typescript": {
415 "typescript": {
416 "version": "3.0.3",
416 "version": "3.1.6",
417 "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.0.3.tgz",
417 "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.1.6.tgz",
418 "integrity": "sha512-kk80vLW9iGtjMnIv11qyxLqZm20UklzuR2tL0QAnDIygIUIemcZMxlMWudl9OOt76H3ntVzcTiddQ1/pAAJMYg==",
418 "integrity": "sha512-tDMYfVtvpb96msS1lDX9MEdHrW4yOuZ4Kdc4Him9oU796XldPYF/t2+uKoX0BBa0hXXwDlqYQbXY5Rzjzc5hBA==",
419 "dev": true
419 "dev": true
420 },
420 },
421 "wrappy": {
421 "wrappy": {
@@ -106,7 +106,7 export class TraceSource {
106
106
107 debug(msg: string, ...args: any[]) {
107 debug(msg: string, ...args: any[]) {
108 if (this.isEnabled(DebugLevel))
108 if (this.isEnabled(DebugLevel))
109 this.emit(DebugLevel, format(msg, args));
109 this.emit(DebugLevel, format.apply(null, arguments));
110 }
110 }
111
111
112 isLogEnabled() {
112 isLogEnabled() {
@@ -115,7 +115,7 export class TraceSource {
115
115
116 log(msg: string, ...args: any[]) {
116 log(msg: string, ...args: any[]) {
117 if (this.isEnabled(LogLevel))
117 if (this.isEnabled(LogLevel))
118 this.emit(LogLevel, format(msg, args));
118 this.emit(LogLevel, format.apply(null, arguments));
119 }
119 }
120
120
121 isWarnEnabled() {
121 isWarnEnabled() {
@@ -124,7 +124,7 export class TraceSource {
124
124
125 warn(msg: string, ...args: any[]) {
125 warn(msg: string, ...args: any[]) {
126 if (this.isEnabled(WarnLevel))
126 if (this.isEnabled(WarnLevel))
127 this.emit(WarnLevel, format(msg, args));
127 this.emit(WarnLevel, format.apply(null, arguments));
128 }
128 }
129
129
130 /**
130 /**
@@ -142,7 +142,7 export class TraceSource {
142 */
142 */
143 error(msg: string, ...args: any[]) {
143 error(msg: string, ...args: any[]) {
144 if (this.isEnabled(ErrorLevel))
144 if (this.isEnabled(ErrorLevel))
145 this.emit(ErrorLevel, format(msg, args));
145 this.emit(ErrorLevel, format.apply(null, arguments));
146 }
146 }
147
147
148 /**
148 /**
General Comments 0
You need to be logged in to leave comments. Login now