fix(lib/registry.ts): Allow hide debug info. (#20891)
This commit is contained in:
+1
-1
@@ -257,7 +257,7 @@ for (const namespace in namespaces) {
|
||||
app.get('/', index);
|
||||
app.get('/healthz', healthz);
|
||||
app.get('/robots.txt', robotstxt);
|
||||
if (config.debugInfo) {
|
||||
if (config.debugInfo !== 'false') {
|
||||
// Only enable tracing in debug mode
|
||||
app.get('/metrics', metrics);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user