diff --git a/src/lib/server.ts b/src/lib/server.ts index a1b8e56..21d233a 100644 --- a/src/lib/server.ts +++ b/src/lib/server.ts @@ -9,7 +9,7 @@ import constants from './constants.js'; export default async (ctx: Context): Promise> => { - const server: FastifyInstance = fastify({ logger: false, bodyLimit: 10000000 }); + const server: FastifyInstance = fastify({ logger: ctx.env.LT_SDK_DEBUG ? true : false, bodyLimit: 10000000 }); const opts: RouteShorthandOptions = {}; const SMARTUI_DOM = readFileSync(path.resolve(__dirname, 'dom-serializer.js'), 'utf-8');