mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
style: prepare for prettier:fix
This commit is contained in:
parent
0a67b7c1bd
commit
e378b597a6
@ -86,7 +86,10 @@ const createAppender = (name, config) => {
|
||||
}
|
||||
|
||||
debug(`${name}: clustering.isMaster ? ${clustering.isMaster()}`);
|
||||
debug(`${name}: appenderModule is ${require('util').inspect(appenderModule)}`); // eslint-disable-line global-require
|
||||
debug(
|
||||
// eslint-disable-next-line global-require
|
||||
`${name}: appenderModule is ${require('util').inspect(appenderModule)}`
|
||||
);
|
||||
return clustering.onlyOnMaster(() => {
|
||||
debug(`calling appenderModule.configure for ${name} / ${appenderConfig.type}`);
|
||||
return appenderModule.configure(
|
||||
|
||||
@ -28,8 +28,11 @@ const throwExceptionIf = (config, checks, message) => {
|
||||
const tests = Array.isArray(checks) ? checks : [checks];
|
||||
tests.forEach((test) => {
|
||||
if (test) {
|
||||
throw new Error(`Problem with log4js configuration: (${util.inspect(config, { depth: 5 })})`
|
||||
+ ` - ${message}`);
|
||||
throw new Error(
|
||||
`Problem with log4js configuration: (${util.inspect(config, {
|
||||
depth: 5,
|
||||
})}) - ${message}`
|
||||
);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@ -22,7 +22,8 @@ function defaultParseCallStack(data, skipIdx = 4) {
|
||||
columnNumber: parseInt(lineMatch[4], 10),
|
||||
callStack: stacklines.join("\n")
|
||||
};
|
||||
} else { // eslint-disable-line no-else-return
|
||||
// eslint-disable-next-line no-else-return
|
||||
} else {
|
||||
// will never get here unless nodejs has changes to Error
|
||||
console.error('log4js.logger - defaultParseCallStack error'); // eslint-disable-line no-console
|
||||
}
|
||||
|
||||
@ -201,10 +201,12 @@ test("../../lib/appenders/dateFile", batch => {
|
||||
return true;
|
||||
}
|
||||
|
||||
on() { // eslint-disable-line class-methods-use-this
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
on() {
|
||||
}
|
||||
|
||||
get writable() { // eslint-disable-line class-methods-use-this
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
get writable() {
|
||||
return writable;
|
||||
}
|
||||
};
|
||||
|
||||
@ -358,10 +358,12 @@ test("log4js fileAppender", batch => {
|
||||
return true;
|
||||
}
|
||||
|
||||
on() { // eslint-disable-line class-methods-use-this
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
on() {
|
||||
}
|
||||
|
||||
get writable() { // eslint-disable-line class-methods-use-this
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
get writable() {
|
||||
return writable;
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user