diff --git a/src/jobs/controllers/jobs/jobs.controller.ts b/src/jobs/controllers/jobs/jobs.controller.ts index 1a5ccdc..52c49ac 100644 --- a/src/jobs/controllers/jobs/jobs.controller.ts +++ b/src/jobs/controllers/jobs/jobs.controller.ts @@ -49,7 +49,11 @@ export class JobsController { try { return (await this.databaseService.queryJobs(query)) as Job[]; } catch (error: any) { - this.logger.error(`Could not query jobs`, error, JobsController.name); + this.logger.error( + `Could not query jobs: ${JSON.stringify(error)}`, + error, + JobsController.name, + ); throw new InternalServerErrorException( `Could not query jobs: ${error.message}`, );