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:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user