Skip to content

Commit

Permalink
fix(workers): log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloCastellano committed Mar 6, 2024
1 parent 9057f18 commit 767042e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/blob-propagator/src/BlobPropagator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ export class BlobPropagator {

finalizerWorker.on("completed", (job) => {
logger.debug(
`Propagation finalizer job ${job.id} completed. Blob propagated successfully`
`Job ${job.id} completed`
);
});

finalizerWorker.on("failed", (job, err) => {
logger.error(`Propagation finalizer job ${job?.id} failed: ${err}`);
logger.error(`Job ${job?.id} failed: ${err}`);
});

return finalizerWorker;
Expand All @@ -194,13 +194,13 @@ export class BlobPropagator {

storageWorker.on("completed", (job) => {
logger.debug(
`${workerName}: storage blob propagation job ${job.id} completed`
`Job ${job.id} completed by ${workerName}`
);
});

storageWorker.on("failed", (job, err) => {
logger.error(
`${workerName}: storage blob propagation job ${job?.id} failed: ${err}`
`Job ${job?.id} failed: ${err} (worker: ${workerName})`
);
});

Expand Down

0 comments on commit 767042e

Please sign in to comment.