mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 14:03:42 +00:00
feat: add options to disable winston and devwatch
This commit is contained in:
parent
cc0800d60a
commit
5d5f5660b4
@ -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: [
|
||||
|
@ -339,6 +339,7 @@ class LogService extends BaseService {
|
||||
|
||||
let logger;
|
||||
|
||||
if ( ! config.no_winston )
|
||||
logger = new WinstonLogger(
|
||||
winston.createLogger({
|
||||
levels: WINSTON_LEVELS,
|
||||
|
Loading…
Reference in New Issue
Block a user