From 4c36742ec8072e645f0b755cdf5e9582ac2a6887 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 11 Feb 2023 18:06:52 +0100 Subject: Rework logging Logging during a request is at the moment not really needed. Printing the config to the log was a stupid idea too. --- database.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'database.go') diff --git a/database.go b/database.go index 1efd22e..ea11cfa 100644 --- a/database.go +++ b/database.go @@ -52,6 +52,8 @@ func setupDatabase() *sql.DB { os.Exit(0) // TODO this does not belong to a database - write utils file 'shutdown.go' }() + log.Printf("Connected to database: %s\n", target) + return db } -- cgit v1.2.3-70-g09d2