From 8a80c8a609a7b268c19599f9befbb24bc272dd81 Mon Sep 17 00:00:00 2001 From: henry Date: Sun, 2 Mar 2025 21:52:30 -0800 Subject: [PATCH] Don't do this: log.Println("[INFO] Reading version: ", string(buildBytes)) } else { log.Println("[ERROR] Unable to read /opt/build_version.json file:", err) Generates too much spam --- messages.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/messages.go b/messages.go index 4975c71..cfa7890 100644 --- a/messages.go +++ b/messages.go @@ -28,7 +28,6 @@ package messages import ( "encoding/json" - "log" "math" "math/rand" "os" @@ -998,9 +997,6 @@ func CreateHeader(status int, location string) MessageHeader { buildBytes, err := os.ReadFile("/opt/build_version.json") if err == nil { err = json.Unmarshal(buildBytes, &build) - log.Println("[INFO] Reading version: ", string(buildBytes)) - } else { - log.Println("[ERROR] Unable to read /opt/build_version.json file:", err) } // Build Message Header