feat: add options to disable winston and devwatch

This commit is contained in:
KernelDeimos 2024-07-24 01:52:07 -04:00
parent cc0800d60a
commit 5d5f5660b4
2 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,8 @@ class SelfHostedModule extends AdvancedBase {
const DevWatcherService = require('./services/DevWatcherService');
const path_ = require('path');
if ( ! config.no_devwatch )
services.registerService('__dev-watcher', DevWatcherService, {
root: path_.resolve(__dirname, '../../../'),
commands: [

View File

@ -339,6 +339,7 @@ class LogService extends BaseService {
let logger;
if ( ! config.no_winston )
logger = new WinstonLogger(
winston.createLogger({
levels: WINSTON_LEVELS,