fix: MK_LOG_JSONのcontextの値が正常に表示されない問題を修正 (MisskeyIO#347)

fix bug from MisskeyIO#346
This commit is contained in:
まっちゃとーにゅ 2024-01-09 11:21:37 +09:00 committed by tamaina
parent ec914d9f0c
commit 670d509696

View file

@ -58,7 +58,7 @@ export default class Logger {
message: message, message: message,
data: data, data: data,
important: important, important: important,
context: [this.context].concat(subContexts).join('.'), context: [this.context].concat(subContexts).map(d => d.name).join('.'),
cluster: cluster.isPrimary ? 'primary' : `worker-${cluster.worker!.id}`, cluster: cluster.isPrimary ? 'primary' : `worker-${cluster.worker!.id}`,
})); }));
return; return;