1
0

update: missing service & codePath info in some logging

This commit is contained in:
alikia2x (寒寒) 2025-10-20 05:36:38 +08:00
parent f8192d5241
commit b25a2992e1
2 changed files with 3 additions and 3 deletions

View File

@ -132,7 +132,7 @@ class NetworkDelegate {
} catch (e) {
const error = e as Error;
if (e instanceof ReplyError) {
logger.error(error, "redis");
logger.error(error, "redis", "fn:triggerLimiter");
} else if (e instanceof RateLimiterError) {
// Re-throw it to ensure this.request can catch it
throw e;

View File

@ -48,7 +48,7 @@ export const bulkSnapshotTickWorker = async (_job: Job) => {
}
return `OK`;
} catch (e) {
logger.error(e as Error);
logger.error(e as Error, "mq", "fn:snapshotTickWorker");
}
};
@ -77,7 +77,7 @@ export const snapshotTickWorker = async (_job: Job) => {
}
return `OK`;
} catch (e) {
logger.error(e as Error);
logger.error(e as Error, "mq", "fn:snapshotTickWorker");
}
};