From d2295f90e5d30c75cd26bbdd14f36a8568df99ff Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Fri, 7 Jun 2024 13:39:45 +0000 Subject: [PATCH] fix: include stack traces --- packages/nocodb/src/modules/jobs/redis/jobs-redis.ts | 8 +++++++- packages/nocodb/src/redis/pubsub-redis.ts | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/modules/jobs/redis/jobs-redis.ts b/packages/nocodb/src/modules/jobs/redis/jobs-redis.ts index a6b6f14cdd..aaaa8e0121 100644 --- a/packages/nocodb/src/modules/jobs/redis/jobs-redis.ts +++ b/packages/nocodb/src/modules/jobs/redis/jobs-redis.ts @@ -36,7 +36,13 @@ export class JobsRedis extends PubSubRedis { (await this.primaryCallbacks[command](...args)); } } catch (error) { - this.logger.error('Error processing message' + error); + this.logger.error({ + message: 'Error processing redis pub-sub message', + error: { + message: error?.message, + stack: error?.stack, + }, + }); } }; if (process.env.NC_WORKER_CONTAINER === 'true') { diff --git a/packages/nocodb/src/redis/pubsub-redis.ts b/packages/nocodb/src/redis/pubsub-redis.ts index e96167002d..9196f62445 100644 --- a/packages/nocodb/src/redis/pubsub-redis.ts +++ b/packages/nocodb/src/redis/pubsub-redis.ts @@ -34,7 +34,13 @@ export class PubSubRedis { await callback(...args); } } catch (error) { - PubSubRedis.logger.error('Error processing message' + error); + PubSubRedis.logger.error({ + message: 'Error processing redis pub-sub message', + error: { + message: error?.message, + stack: error?.stack, + }, + }); } });