1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2025-03-31 01:24:31 +00:00

added the use of enableDebug flag in errorKernel

This commit is contained in:
postmannen 2022-02-18 06:40:00 +01:00
parent 9fb9d3fd41
commit 244804bae9

View file

@ -90,6 +90,10 @@ func (e *errorKernel) start(ringBufferBulkInCh chan<- []subjectAndMessage) error
// Put the message on the channel to the ringbuffer.
ringBufferBulkInCh <- []subjectAndMessage{sam}
if errEvent.process.configuration.EnableDebug {
log.Printf("%v\n", er)
}
}
// Check the type of the error to decide what to do.