From 01aa3128de17442f0d40aec07e909d37033696f7 Mon Sep 17 00:00:00 2001 From: jano3 <jano@bob.co.za> Date: Tue, 20 Feb 2024 08:57:56 +0200 Subject: [PATCH] Initialise global logging variables in InitLogs --- logs/logs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/logs/logs.go b/logs/logs.go index 569a830..6fc4ce5 100644 --- a/logs/logs.go +++ b/logs/logs.go @@ -109,6 +109,9 @@ func InitLogs(requestID *string, isDebugBuild bool, buildVersion string, request isDebug = isDebugBuild build = buildVersion raygunClient = client + disableLogging = false + storeLogsUntilTriggered = false + cachedLogEntries = []LogEntryWithLevel{} if isDebugBuild { log.SetReportCaller(true) -- GitLab