Better redis logging.

This commit is contained in:
2020-10-22 22:35:00 +02:00
parent b6e2bde4d1
commit f1d500936b

View File

@@ -1,11 +1,12 @@
let client;
try {
const redis = require("redis");
console.log("trying to create redis");
console.log("Trying to establish connection with redis.");
client = redis.createClient();
client.on("error", function(err) {
client.quit();
console.error("Missing redis-configurations..");
client = {
rpush: function() {
console.log("redis-dummy lpush", arguments);