mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: add LOG_LEVEL env var and improve error messages
Add configurable LOG_LEVEL (fatal/error/warn/info/debug/trace) for Fastify logger. Always return error details in tool processing responses and combine error + details in frontend display.
This commit is contained in:
@@ -34,7 +34,7 @@ await ensureDefaultAdmin();
|
||||
recoverStaleJobs();
|
||||
|
||||
const app = Fastify({
|
||||
logger: true,
|
||||
logger: { level: env.LOG_LEVEL },
|
||||
bodyLimit: env.MAX_UPLOAD_SIZE_MB * 1024 * 1024,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user