Skip to content

Commit

Permalink
Debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Jun 16, 2023
1 parent 3e2b218 commit a77db70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/tasks/handler/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,12 @@ func handleContactEvent(ctx context.Context, rt *runtime.Runtime, task *queue.Ta

case MsgEventType:
msg := &MsgEvent{}
fmt.Printf("Task: %s", contactEvent.Task)
err = json.Unmarshal(contactEvent.Task, msg)
if err != nil {
return errors.Wrapf(err, "error unmarshalling msg event: %s", event)
}
fmt.Printf("%+v\n", msg)
err = handleMsgEvent(ctx, rt, msg)

case TicketClosedEventType:
Expand Down

0 comments on commit a77db70

Please sign in to comment.