diff options
Diffstat (limited to 'lib/db.js')
| -rw-r--r-- | lib/db.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -3,7 +3,12 @@ import { sleep } from "$lib/utils"; import { createClient } from "redis"; export const db = createClient({ url: config.db }); -await db.connect(); +try { + await db.connect(); + console.log("CONNECTED") +} catch (e) { + console.log("FAILED CONNECTION") +} export default db; export let g = async k => { |
