diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-03 18:34:56 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-03 18:34:56 +0530 |
commit | 020fc720379255832aad369dfc2dece9a1cf4699 (patch) | |
tree | 25e3f1ee3349b0d6f536d91a76a6d9a334bea03d /db/db.go | |
parent | 776522d8741752832981b17ec81deb11a298ef57 (diff) |
added pretty startup messages
Diffstat (limited to 'db/db.go')
-rw-r--r-- | db/db.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"]) } |