We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea8a1a1 commit 26bd63eCopy full SHA for 26bd63e
fastboot.js
@@ -12,17 +12,18 @@ class LoggerWithoutTimestamp {
12
constructor() {
13
this.prefix = cluster.isMaster ? 'master' : 'worker';
14
}
15
- writeLine() {
16
- this._write('info', Array.prototype.slice.apply(arguments));
+
+ writeLine(...args) {
17
+ this._write('info', args);
18
19
- writeError() {
20
- this._write('error', Array.prototype.slice.apply(arguments));
+ writeError(...args) {
21
+ this._write('error', args);
22
23
24
_write(level, args) {
25
args[0] = `[${level}][${this.prefix}] ${args[0]}`;
- console.log.apply(console, args);
26
+ console.log(...args);
27
28
29
0 commit comments