mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
chore(test): improve test coverage for multiFileAppender
(else path will never be taken)
appenders/multiFile.js - Line 17 - /* istanbul ignore else */
appenders/multiFile.js - Line 18 - if (timer && app) {
This commit is contained in:
parent
905a513cf6
commit
6e6dbad5d3
@ -14,6 +14,7 @@ module.exports.configure = (config, layouts) => {
|
||||
function checkForTimeout(fileKey) {
|
||||
const timer = timers.get(fileKey);
|
||||
const app = files.get(fileKey);
|
||||
/* istanbul ignore else */
|
||||
if (timer && app) {
|
||||
if (Date.now() - timer.lastUsed > timer.timeout) {
|
||||
debug('%s not used for > %d ms => close', fileKey, timer.timeout);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user