Skip to content

Commit

Permalink
fix: improve readability of debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
yujiosaka committed Oct 25, 2023
1 parent d209bc4 commit 3c920f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/job-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ export default class JobRunner<I> {
const jobInterval = differenceInMilliseconds(jobIntervalEndedAt, this.#jobIntervalStartedAt);
const jobLock = MockJobLock.parse({ jobName: this.#jobName, jobInterval, jobIntervalEndedAt });

log(`Job from ${this.#jobIntervalStartedAt} to ${jobIntervalEndedAt} is started for ${this.#jobName}`);
log(
`Job from ${this.#jobIntervalStartedAt.toISOString()} to ${jobIntervalEndedAt.toISOString()} is started for ${
this.#jobName
}`,
);
return new Job(this.#jobStore, jobLock);
}

Expand Down

0 comments on commit 3c920f8

Please sign in to comment.