Skip to content

Commit 9342f30

Browse files
committed
refactor(backend): change logger level from debug to trace for detailed logging
1 parent 2b273e4 commit 9342f30

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

services/backend/src/fastify/hooks/request-logger.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ export const registerRequestLoggerHooks = (server: FastifyInstance): void => {
1313

1414
// Start timing the request and log that it's been received
1515
reply.startTime = Date.now()
16-
req.log.info({ url: req.url, method: req.method, requestId }, 'request received')
16+
req.log.trace({ url: req.url, method: req.method, requestId }, 'request received')
1717

1818
done()
1919
})
2020

2121
// Add response logging with timing information
2222
server.addHook('onResponse', (req: FastifyRequest, reply: FastifyReply, done) => {
2323
const responseTime = Date.now() - reply.startTime
24-
25-
req.log.info({
24+
25+
req.log.trace({
2626
url: req.url,
2727
method: req.method,
2828
statusCode: reply.statusCode,

services/backend/src/jobs/refresh-oauth-tokens.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function refreshExpiringOAuthTokens(logger: FastifyBaseLogger) {
3030
const expiryThreshold = new Date(Date.now() + 10 * 60 * 1000);
3131
const now = new Date();
3232

33-
logger.debug(
33+
logger.trace(
3434
{
3535
operation: 'refresh_expiring_oauth_tokens',
3636
expiryThreshold,
@@ -66,7 +66,7 @@ export async function refreshExpiringOAuthTokens(logger: FastifyBaseLogger) {
6666
);
6767

6868
if (expiringTokens.length === 0) {
69-
logger.debug(
69+
logger.trace(
7070
{ operation: 'refresh_expiring_oauth_tokens' },
7171
'No tokens need refreshing'
7272
);

services/backend/src/middleware/satelliteAuthMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function requireSatelliteAuth() {
9898
status: matchingSatellite.status as 'active' | 'inactive' | 'maintenance' | 'error'
9999
};
100100

101-
request.log.debug({
101+
request.log.trace({
102102
operation: 'satellite_auth_success',
103103
satelliteId: matchingSatellite.id,
104104
satelliteName: matchingSatellite.name,

services/backend/src/workers/cleanupExpiredOAuthPendingFlowsWorker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class CleanupExpiredOAuthPendingFlowsWorker implements Worker {
1111
) {}
1212

1313
async execute(_payload: unknown, jobId: string): Promise<WorkerResult> {
14-
this.logger.debug({
14+
this.logger.trace({
1515
jobId,
1616
operation: 'cleanup_expired_oauth_pending_flows'
1717
}, 'Starting cleanup of expired OAuth pending flows');
@@ -33,7 +33,7 @@ export class CleanupExpiredOAuthPendingFlowsWorker implements Worker {
3333
operation: 'cleanup_expired_oauth_pending_flows'
3434
}, 'Cleaned up expired OAuth pending flows');
3535
} else {
36-
this.logger.debug({
36+
this.logger.trace({
3737
jobId,
3838
operation: 'cleanup_expired_oauth_pending_flows'
3939
}, 'No expired OAuth pending flows found');

0 commit comments

Comments
 (0)