merge: Increase indent in logs (!1064)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1064

Approved-by: Marie <github@yuugi.dev>
Approved-by: dakkar <dakkar@thenautilus.net>
This commit is contained in:
Hazelnoot 2025-06-01 21:01:37 +00:00
commit 826d6ef2b4

View file

@ -72,8 +72,8 @@ export default class Logger {
null; null;
let log = envOption.hideWorkerId let log = envOption.hideWorkerId
? `${l}\t[${contexts.join(' ')}]\t${m}` ? `${l}\t[${contexts.join(' ')}]\t\t${m}`
: `${l} ${worker}\t[${contexts.join(' ')}]\t${m}`; : `${l} ${worker}\t[${contexts.join(' ')}]\t\t${m}`;
if (envOption.withLogTime) log = chalk.gray(time) + ' ' + log; if (envOption.withLogTime) log = chalk.gray(time) + ' ' + log;
const args: unknown[] = [important ? chalk.bold(log) : log]; const args: unknown[] = [important ? chalk.bold(log) : log];