Skip to content
Snippets Groups Projects
Commit 21913598 authored by Francé Wilke's avatar Francé Wilke
Browse files

Create function to force logging of stored logs

parent 07caebe0
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,7 @@ var apiRequest *events.APIGatewayProxyRequest ...@@ -44,6 +44,7 @@ var apiRequest *events.APIGatewayProxyRequest
var currentRequestID *string var currentRequestID *string
var isDebug = false var isDebug = false
var storeLogsUntilTriggered = false var storeLogsUntilTriggered = false
var forceLogStoredLogs = false
var disableLogging = false var disableLogging = false
var build string var build string
var raygunClient *raygun4go.Client var raygunClient *raygun4go.Client
...@@ -475,6 +476,14 @@ func DisableLogging() { ...@@ -475,6 +476,14 @@ func DisableLogging() {
disableLogging = true disableLogging = true
} }
func SetShouldForceLogStoredLogs(val bool) {
forceLogStoredLogs = val
}
func ShouldForceLogStoredLogs() bool {
return forceLogStoredLogs
}
func ClearInfo() { func ClearInfo() {
logger = nil logger = nil
cachedLogEntries = []LogEntryWithLevel{} cachedLogEntries = []LogEntryWithLevel{}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment