diff --git a/src/logger.js b/src/logger.js index 855867d..f5b5bcf 100644 --- a/src/logger.js +++ b/src/logger.js @@ -330,7 +330,7 @@ class Logger extends Writable { if (this.withLevel && lvlName) { modifiedLog.unshift(lvlName); } - + if (this.withHostname) { modifiedLog.unshift(os.hostname()); } @@ -654,7 +654,7 @@ class Logger extends Writable { } get withHostname() { - return this._withHostname; + return this._withHostname; } set withHostname(val) {