diff --git a/package.json b/package.json index c7724a1..8a21e61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@navy.gif/logger", - "version": "1.1.7", + "version": "1.1.8", "description": "Logging thing", "main": "index.js", "author": "Navy.gif", diff --git a/src/MasterLogger.js b/src/MasterLogger.js index 890ffbc..83c2168 100644 --- a/src/MasterLogger.js +++ b/src/MasterLogger.js @@ -83,7 +83,7 @@ class MasterLogger { _shard (shard) { if (!shard) return 'controller'; let id = '??'; - if (shard.id) id = `${shard.id < 10 ? `0${shard.id}` : shard.id}`; + if ('id' in shard) id = `${shard.id < 10 ? `0${shard.id}` : shard.id}`; return `shard${id}`; }