Console access log output is now controlled by enableAccessLog

d1a82c85a5cbe4d33606ce0e9d84122d6cd6f416

cloudskytian <cloudskytian@users.noreply.github.com>

Signed
1 files changed, +1 -1Ignore whitespace
src/middleware/accessLogWriter.js+1 -1
@@ -37,11 +37,11 @@ export default function accessLoggerMiddleware() {
3737
3838 if (!knownIPs.has(clientIp)) {
3939 // Log new connection
40- console.info(color.yellow(`New connection from ${clientIp}; User Agent: ${userAgent}\n`));
4140 knownIPs.add(clientIp);
4241
4342 // Write to access log if enabled
4443 if (enableAccessLog) {
44+ console.info(color.yellow(`New connection from ${clientIp}; User Agent: ${userAgent}\n`));
4545 const logPath = getAccessLogPath();
4646 const timestamp = new Date().toISOString();
4747 const log = `${timestamp} ${clientIp} ${userAgent}\n`;