fix(config): debug not shown when DEBUG_INFO set true

Debug info is not shown when DEBUG_INFO is set to 'true'.
This commit is contained in:
tuzi3040
2021-01-20 20:37:43 +08:00
parent 9ae7969280
commit 5cfa5845a0
+1 -1
View File
@@ -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;