mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
Merge pull request #1162 from nicojs/patch-1
fix(multiprocess): startup multiprocess even when no direct appenders
This commit is contained in:
commit
58b73531b9
@ -95,9 +95,9 @@ const setup = (config) => {
|
||||
usedAppenders.push(...category.appenders)
|
||||
});
|
||||
Object.keys(config.appenders).forEach((name) => {
|
||||
// dodgy hard-coding of special case for tcp-server which may not have
|
||||
// dodgy hard-coding of special case for tcp-server and multiprocess which may not have
|
||||
// any categories associated with it, but needs to be started up anyway
|
||||
if (usedAppenders.includes(name) || config.appenders[name].type === 'tcp-server') {
|
||||
if (usedAppenders.includes(name) || config.appenders[name].type === 'tcp-server' || config.appenders[name].type === 'multiprocess') {
|
||||
getAppender(name, config);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user