From 94356e7d4ecac76c31f2c08a8fcdc797d03d4e2d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 1 Mar 2026 03:56:41 +0000 Subject: [PATCH] fix(logging): convert hostID to string for improved logging in SyncAndCheckForHost --- backend/internal/services/uptime_service.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/internal/services/uptime_service.go b/backend/internal/services/uptime_service.go index 33030392..91422a86 100644 --- a/backend/internal/services/uptime_service.go +++ b/backend/internal/services/uptime_service.go @@ -8,6 +8,7 @@ import ( "net" "net/http" "net/url" + "strconv" "strings" "sync" "time" @@ -1217,7 +1218,8 @@ func (s *UptimeService) SyncAndCheckForHost(hostID uint) { // response and this goroutine executing. var host models.ProxyHost if err := s.DB.Where("id = ?", hostID).First(&host).Error; err != nil { - logger.Log().WithField("host_id", hostID).Debug("SyncAndCheckForHost: proxy host not found (may have been deleted)") + hostIDStr := strconv.FormatUint(uint64(hostID), 10) + logger.Log().WithField("host_id", hostIDStr).Debug("SyncAndCheckForHost: proxy host not found (may have been deleted)") return }