debug prints only if DEV
Massimo Melina committed
Apr 14, 2022 at 12:26 UTC
4b09293d168806b59866c4916583b4f40ee98e8c
1 file changed
+1
server/src/const.ts
+1
@@ -28,6 +28,7 @@ export const IS_WINDOWS = process.platform === 'win32'
28
29
// we want this to be the first stuff to be printed, then we print it in this module, that is executed at the beginning
30
if (DEV) console.clear()
31
+else console.debug = ()=>{}
32
console.log(`HFS ~ HTTP File Server - Copyright 2021-2022, Massimo Melina <a@rejetto.com>`)
33
console.log(`License https://www.gnu.org/licenses/gpl-3.0.txt`)
34
console.log('started', HFS_STARTED.toLocaleString(), DEV)