From db798b8f41dc69632533b139a9c65d1e3f316fa2 Mon Sep 17 00:00:00 2001 From: Tom Bevan Date: Mon, 10 Oct 2016 16:36:01 +0100 Subject: [PATCH] debug output of messages --- notification.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/notification.go b/notification.go index 77af1b4..b449e9e 100644 --- a/notification.go +++ b/notification.go @@ -6,6 +6,7 @@ package main import ( "encoding/json" + "fmt" "log" "strings" @@ -50,6 +51,7 @@ func processNotification(msg *nats.Msg) (*Notification, error) { func publishMessage(service string, msg *Message) { data, err := json.Marshal(msg) + fmt.Println(string(data)) if err != nil { log.Println("Could not encode message: ")