Skip to content

Commit b7a2035

Browse files
authored
fix(twilio-run): stop debug logging in runtime-handler by default (#315)
1 parent 7a086a6 commit b7a2035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/twilio-run/src/runtime/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import path from 'path';
1919
import { StartCliConfig } from '../config/start';
2020
import { printRouteInfo } from '../printers/start';
2121
import { wrapErrorInHtml } from '../utils/error-html';
22-
import { getDebugFunction, logger } from '../utils/logger';
22+
import { getDebugFunction, logger, LoggingLevel } from '../utils/logger';
2323
import { writeOutput } from '../utils/output';
2424
import { requireFromProject } from '../utils/requireFromProject';
2525
import { createLogger } from './internal/request-logger';
@@ -141,7 +141,7 @@ export async function createLocalDevelopmentServer(
141141
forkProcess: config.forkProcess,
142142
logger: logger,
143143
routes: routes,
144-
enableDebugLogs: true,
144+
enableDebugLogs: logger.config.level === LoggingLevel.debug,
145145
});
146146
server.on('request-log', (logMessage: string) => {
147147
writeOutput(logMessage);

0 commit comments

Comments
 (0)