mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
fix(multiprocess): startup multiprocess even when no direct appenders attached
Fixes #1161
This commit is contained in:
parent
2ddc41d5a1
commit
f127382fa8
@ -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