Skip to content

Commit

Permalink
Merge pull request #1162 from nicojs/patch-1
Browse files Browse the repository at this point in the history
fix(multiprocess): startup multiprocess even when no direct appenders
  • Loading branch information
lamweili committed Jan 23, 2022
2 parents 2ddc41d + f127382 commit 58b7353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/appenders/index.js
Expand Up @@ -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);
}
});
Expand Down

0 comments on commit 58b7353

Please sign in to comment.