This commit is contained in:
Erik 2022-11-08 23:02:08 +02:00
parent 4142dc0e4a
commit a6bfe29a88
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@navy.gif/logger", "name": "@navy.gif/logger",
"version": "1.1.7", "version": "1.1.8",
"description": "Logging thing", "description": "Logging thing",
"main": "index.js", "main": "index.js",
"author": "Navy.gif", "author": "Navy.gif",

View File

@ -83,7 +83,7 @@ class MasterLogger {
_shard (shard) { _shard (shard) {
if (!shard) return 'controller'; if (!shard) return 'controller';
let id = '??'; 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}`; return `shard${id}`;
} }