implement proper nodejs debugging

- will start to phase out using console.log for actual debugging
- existing "debug" (verbose) messages will stay as is
- future code debugging will use debug() to debug WIP, therefore not showing to most users if it is accidently left in
This commit is contained in:
zefie
2022-10-22 19:07:11 -04:00
parent b0816f7f35
commit de33d39a93
2 changed files with 24 additions and 1 deletions

View File

@@ -59,6 +59,13 @@ class WTVShared {
return src;
}
isConfiguredService(service) {
if (this.minisrv_config.services[service]) {
if (!this.minisrv_config.services[service].disabled) return true;
}
return false;
}
getServiceString(service, overrides = {}) {
// used externally by service scripts
if (service === "all") {