From 5cfa5845a09eefc2395499b01b7127f89e491def Mon Sep 17 00:00:00 2001 From: tuzi3040 <28290621+tuzi3040@users.noreply.github.com> Date: Wed, 20 Jan 2021 20:37:43 +0800 Subject: [PATCH] fix(config): debug not shown when DEBUG_INFO set true Debug info is not shown when DEBUG_INFO is set to 'true'. --- lib/routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/index.js b/lib/routes/index.js index 22fb4f740..15c8e3f92 100644 --- a/lib/routes/index.js +++ b/lib/routes/index.js @@ -59,7 +59,7 @@ module.exports = async (ctx) => { if (!config.debugInfo || config.debugInfo === 'false') { showDebug = false; } else { - showDebug = config.debugInfo === true || config.debugInfo === ctx.query.debug; + showDebug = config.debugInfo === 'true' || config.debugInfo === ctx.query.debug; } const { disallowRobot } = config;