mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
refactor(federation): 🔊 Logging color tweaks
This commit is contained in:
parent
40e7903d90
commit
be69407c01
16
worker.ts
16
worker.ts
|
|
@ -100,9 +100,9 @@ export const inboxWorker = new Worker<InboxJobData, Response, InboxJobType>(
|
|||
const logger = getLogger(["federation", "inbox"]);
|
||||
|
||||
logger.debug(
|
||||
`Processing entity ${chalk.bold(
|
||||
`Processing entity ${chalk.gray(
|
||||
data.id,
|
||||
)} from ${chalk.bold(signedBy)}`,
|
||||
)} from ${chalk.gray(signedBy)}`,
|
||||
);
|
||||
|
||||
if (authorization) {
|
||||
|
|
@ -120,7 +120,7 @@ export const inboxWorker = new Worker<InboxJobData, Response, InboxJobType>(
|
|||
);
|
||||
|
||||
logger.debug(
|
||||
`Entity ${chalk.bold(
|
||||
`Entity ${chalk.gray(
|
||||
data.id,
|
||||
)} is potentially from a bridge`,
|
||||
);
|
||||
|
|
@ -175,6 +175,14 @@ export const inboxWorker = new Worker<InboxJobData, Response, InboxJobType>(
|
|||
);
|
||||
}
|
||||
|
||||
logger.debug(
|
||||
`Entity ${chalk.gray(
|
||||
data.id,
|
||||
)} is from remote instance ${chalk.gray(
|
||||
remoteInstance.data.baseUrl,
|
||||
)}`,
|
||||
);
|
||||
|
||||
const processor = new InboxProcessor(
|
||||
request,
|
||||
data,
|
||||
|
|
@ -193,7 +201,7 @@ export const inboxWorker = new Worker<InboxJobData, Response, InboxJobType>(
|
|||
logger.debug(
|
||||
`${chalk.green(
|
||||
"✔",
|
||||
)} Finished processing entity ${chalk.bold(data.id)}`,
|
||||
)} Finished processing entity ${chalk.gray(data.id)}`,
|
||||
);
|
||||
|
||||
return output;
|
||||
|
|
|
|||
Loading…
Reference in a new issue