mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +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 DevWatcherService = require('./services/DevWatcherService');
|
||||||
const path_ = require('path');
|
const path_ = require('path');
|
||||||
|
|
||||||
|
if ( ! config.no_devwatch )
|
||||||
services.registerService('__dev-watcher', DevWatcherService, {
|
services.registerService('__dev-watcher', DevWatcherService, {
|
||||||
root: path_.resolve(__dirname, '../../../'),
|
root: path_.resolve(__dirname, '../../../'),
|
||||||
commands: [
|
commands: [
|
||||||
|
@ -339,6 +339,7 @@ class LogService extends BaseService {
|
|||||||
|
|
||||||
let logger;
|
let logger;
|
||||||
|
|
||||||
|
if ( ! config.no_winston )
|
||||||
logger = new WinstonLogger(
|
logger = new WinstonLogger(
|
||||||
winston.createLogger({
|
winston.createLogger({
|
||||||
levels: WINSTON_LEVELS,
|
levels: WINSTON_LEVELS,
|
||||||
|
Loading…
Reference in New Issue
Block a user