mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
Update redis.js
This commit is contained in:
parent
4b6fce1bf4
commit
8c36edac1d
@ -6,7 +6,8 @@ const util = require('util');
|
||||
|
||||
let layout;
|
||||
|
||||
function redisAppender(config, layout = layouts.messagePassThroughLayout) {
|
||||
function redisAppender(config, layout) {
|
||||
layout = layout || layouts.messagePassThroughLayout;
|
||||
const redisClient = redis.createClient(config.port, config.host, { auth_pass: config.pass });
|
||||
redisClient.on('error', (err) => {
|
||||
if (err) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user