expand logging

This commit is contained in:
2025-05-18 18:25:17 -04:00
parent 028c084cdd
commit 72c0188071
8 changed files with 178 additions and 33 deletions

View File

@@ -1,7 +1,6 @@
package db
import (
"log"
"log/slog"
"os"
@@ -17,7 +16,8 @@ func InitScyllaDB() {
session, err := cluster.CreateSession()
if err != nil {
log.Fatalf("Failed to connect to ScyllaDB: %v", err)
slog.Error("Failed to connect to ScyllaDB", "error", err)
os.Exit(1)
}
Session = session
slog.Info("Connected to ScyllaDB")