Organize cleanup code
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user