mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38: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"]);
|
const logger = getLogger(["federation", "inbox"]);
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`Processing entity ${chalk.bold(
|
`Processing entity ${chalk.gray(
|
||||||
data.id,
|
data.id,
|
||||||
)} from ${chalk.bold(signedBy)}`,
|
)} from ${chalk.gray(signedBy)}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (authorization) {
|
if (authorization) {
|
||||||
|
|
@ -120,7 +120,7 @@ export const inboxWorker = new Worker<InboxJobData, Response, InboxJobType>(
|
||||||
);
|
);
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`Entity ${chalk.bold(
|
`Entity ${chalk.gray(
|
||||||
data.id,
|
data.id,
|
||||||
)} is potentially from a bridge`,
|
)} 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(
|
const processor = new InboxProcessor(
|
||||||
request,
|
request,
|
||||||
data,
|
data,
|
||||||
|
|
@ -193,7 +201,7 @@ export const inboxWorker = new Worker<InboxJobData, Response, InboxJobType>(
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`${chalk.green(
|
`${chalk.green(
|
||||||
"✔",
|
"✔",
|
||||||
)} Finished processing entity ${chalk.bold(data.id)}`,
|
)} Finished processing entity ${chalk.gray(data.id)}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue