From 020fc720379255832aad369dfc2dece9a1cf4699 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 3 Sep 2023 18:34:56 +0530 Subject: added pretty startup messages --- db/db.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'db') diff --git a/db/db.go b/db/db.go index 14b0f11..1d64bf7 100644 --- a/db/db.go +++ b/db/db.go @@ -45,4 +45,6 @@ func init() { if err != nil { log.Fatalf("\x1b[41m\x1b[30m[err]\x1b[0m cannot to connect to database, exiting.\n%v\n", err) } + + log.Printf("\x1b[46m\x1b[30m[info]\x1b[0m Successfully Connected To Database \"%v\"\n", conf["db_name"]) } -- cgit v1.2.3