chore(server): log job start and finish (#12610)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **Refactor**
  - Improved visibility of job start and finish events by updating logging level, making these events more prominent in logs.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
fengmk2
2025-05-28 09:51:36 +00:00
parent 7ae564238d
commit 9e5d132bd0

View File

@@ -73,9 +73,9 @@ export class JobExecutor implements OnModuleDestroy {
async () => {
const signature = `[${name}] (${handler.name}, id=${jobId})`;
try {
this.logger.debug(`Job started: ${signature}`);
this.logger.log(`Job started: ${signature}`);
const ret = await handler.fn(payload);
this.logger.debug(`Job finished: ${signature}, signal=${ret}`);
this.logger.log(`Job finished: ${signature}, signal=${ret}`);
return ret;
} catch (e) {
this.logger.error(`Job failed: ${signature}`, e);