From 09413bfa87ca13af9651ac597a2fa463f4ff77e9 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Fri, 7 Mar 2025 19:31:11 -0900 Subject: [PATCH] test --- db/db.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/db/db.go b/db/db.go index ee94217..9b4d44c 100644 --- a/db/db.go +++ b/db/db.go @@ -357,7 +357,11 @@ func (db *DB) SaveLaneResult(groupID int64, heatNum int, lane int, time float64, _, err = db.Exec("INSERT INTO heat_results (group_id, heat_number, lane4_time, lane4_position) VALUES (?, ?, ?, ?)", groupID, heatNum, time, position) } } - db.logger.Info("Saved lane result", "groupID", groupID, "heatNum", heatNum, "lane", lane, "time", time, "position", position) + if err != nil { + db.logger.Error("Error saving lane result", "error", err) + } else { + db.logger.Info("Saved lane result", "groupID", groupID, "heatNum", heatNum, "lane", lane, "time", time, "position", position) + } return err }