mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-12 00:47:43 +00:00
feat: add options to disable winston and devwatch
This commit is contained in:
1 parent
cc0800d60a
commit
5d5f5660b4
2 files changed
+3
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user