Organize cleanup code

This commit is contained in:
Fred Boniface
2023-07-21 10:02:55 +01:00
parent 849f23b507
commit 9fa0f7d61f
3 changed files with 22 additions and 3 deletions

View File

@@ -19,9 +19,9 @@ func Subscribe() {
for {
msg := <-sub.C
if msg.Err != nil {
log.Msg.Error("\nSTOMP Message Error: " + msg.Err.Error())
log.Msg.Error("STOMP Message Error: " + msg.Err.Error())
} else {
log.Msg.Debug("\nSTOMP Message Received")
log.Msg.Debug("STOMP Message Received")
saveToFile(string(msg.Body), "msgBody")
handle(msg)
}