Skip to content

Commit

Permalink
logging version at start
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesuaheli committed May 13, 2023
1 parent 0a7b785 commit 0fa52cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const banner string = "\n" +
" / /_/ / (__ ) /__/ /_/ / / / /_/ / /_____/ / /_/ / /_/ / /_ \n" +
" /_____/_/____/\\___/\\____/_/ \\__,_/ /_____/\\____/\\__/ \n" +
"\n" +
"Version: v%s\n" +
"%s\n" +
"Copyright 2022-2023 Kesuaheli\n\n"

Expand All @@ -53,7 +54,7 @@ func main() {
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP)
defer stop()

log.Printf(banner, viper.GetString("discord.credits"))
log.Printf(banner, viper.GetString("version"), viper.GetString("discord.credits"))

database.Connect()
defer database.Close()
Expand Down

0 comments on commit 0fa52cc

Please sign in to comment.