Skip to content

Commit

Permalink
debug output of messages
Browse files Browse the repository at this point in the history
  • Loading branch information
purehyperbole committed Oct 10, 2016
1 parent 9361e30 commit db798b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package main

import (
"encoding/json"
"fmt"
"log"
"strings"

Expand Down Expand Up @@ -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: ")
Expand Down

0 comments on commit db798b8

Please sign in to comment.