aboutsummaryrefslogtreecommitdiff
path: root/db/db.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-03 18:34:56 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-03 18:34:56 +0530
commit020fc720379255832aad369dfc2dece9a1cf4699 (patch)
tree25e3f1ee3349b0d6f536d91a76a6d9a334bea03d /db/db.go
parent776522d8741752832981b17ec81deb11a298ef57 (diff)
added pretty startup messages
Diffstat (limited to 'db/db.go')
-rw-r--r--db/db.go2
1 files changed, 2 insertions, 0 deletions
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"])
}