提交 5b428d2e 编写于 作者: M Matt Bierner

Don't use locale strings

For #84803

These can cause issues on node 12
上级 f101f851
......@@ -41,7 +41,7 @@ export class Logger {
public log(message: string, data?: any): void {
if (this.trace === Trace.Verbose) {
this.appendLine(`[Log - ${(new Date().toLocaleTimeString())}] ${message}`);
this.appendLine(`[Log - ${(new Date().toTimeString())}] ${message}`);
if (data) {
this.appendLine(Logger.data2String(data));
}
......
......@@ -41,9 +41,9 @@ export default class Logger {
}
public logLevel(level: LogLevel, message: string, data?: any): void {
this.output.appendLine(`[${level} - ${(new Date().toLocaleTimeString())}] ${message}`);
this.output.appendLine(`[${level} - ${(new Date().toTimeString())}] ${message}`);
if (data) {
this.output.appendLine(this.data2String(data));
}
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册