dx: show debug messages while in DEV mode
Massimo Melina committed
Apr 4, 2026 at 20:13 UTC
0cddb7c7d8148eadb8d7fc8b3e4521417ce5ec8c
1 file changed
+2
-2
src/commands.ts
+2
-2
@@ -6,7 +6,7 @@ import _ from 'lodash'
6
import { getBestUpdate, update } from './update'
7
import { openAdmin } from './listen'
8
import yaml from 'yaml'
9
-import { BUILD_TIMESTAMP, VERSION } from './const'
9
+import { BUILD_TIMESTAMP, DEV, VERSION } from './const'
10
import { createInterface, cursorTo } from 'node:readline'
11
import { quitting } from './first'
12
import { getInactivePlugins, mapPlugins, startPlugin, stopPlugin } from './plugins'
@@ -17,7 +17,7 @@ import apiMonitor from './api.monitor'
17
import { argv } from './argv'
18
import { getServerStatus } from './listen'
19
20
-let debugEnabled = argv.debug || process.env.HFS_DEBUG
20
+let debugEnabled = argv.debug || process.env.HFS_DEBUG || DEV
21
22
if (!argv.updating && !showHelp) {
23
try {