Skip to content

Commit fe3ba43

Browse files
author
zhoudian
committed
add log
1 parent 9222cd9 commit fe3ba43

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/services/RedisService.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,16 +352,18 @@ export default class RedisService {
352352
}
353353
},
354354
(err) => {
355-
console.log(`redis-info:err:${err}`);
355+
Log.error(
356+
"[cmd=RedisService] connectRedis error. redis-info:err",
357+
hostinfo,
358+
err
359+
);
356360
}
357361
);
358362
} else if (hostinfo.connectType === CONNECT_TYPE.CLUSTER) {
359363
//集群
360364
}
361-
console.log("redis:redis:", redis);
362365
});
363366
}).on("error", (err) => {
364-
console.error(`[ERROR] - ${err}`);
365367
Log.error("[cmd=RedisService] connectRedis error.", hostinfo, err);
366368
message.error(intl.get("proxy.connecterror"));
367369
});

0 commit comments

Comments
 (0)