This commit is contained in:
2026-02-22 16:49:10 +00:00
parent a8aba2aee2
commit 285852f04d
2 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -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);
}
});