logging
This commit is contained in:
@@ -146,8 +146,8 @@ piRestRouter.get('/pi/sessions/:sessionId', async (ctx: Context) => {
|
||||
messages,
|
||||
},
|
||||
});
|
||||
} catch (err) {
|
||||
logger.error('Failed to get session', { sessionId, email: ctx.get('email'), error: String(err) });
|
||||
} catch {
|
||||
// Session not found - this is expected for new sessions, don't log as error
|
||||
return ctx.json({ error: 'Session not found' }, 404);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user