Skip to content

Commit d46ff99

Browse files
Merge pull request #83 from pinanks/increase-allowed-resource-size
Add fastify server logs
2 parents a9fa6e3 + 553faaa commit d46ff99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import constants from './constants.js';
99

1010
export default async (ctx: Context): Promise<FastifyInstance<Server, IncomingMessage, ServerResponse>> => {
1111

12-
const server: FastifyInstance<Server, IncomingMessage, ServerResponse> = fastify({ logger: false, bodyLimit: 10000000 });
12+
const server: FastifyInstance<Server, IncomingMessage, ServerResponse> = fastify({ logger: ctx.env.LT_SDK_DEBUG ? true : false, bodyLimit: 10000000 });
1313
const opts: RouteShorthandOptions = {};
1414
const SMARTUI_DOM = readFileSync(path.resolve(__dirname, 'dom-serializer.js'), 'utf-8');
1515

0 commit comments

Comments
 (0)