1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2025-03-31 01:24:31 +00:00

debugging

This commit is contained in:
postmannen 2022-02-15 15:47:14 +01:00
parent e2c17db5bf
commit cbba482371

View file

@ -417,6 +417,7 @@ func (p process) messageSubscriberHandler(natsConn *nats.Conn, thisNode string,
if err != nil {
er := fmt.Errorf("error: gob decoding failed: %v", err)
log.Printf("%v\n", er)
fmt.Printf(" * DEBUG1: message: %#v\n", message)
p.processes.errorKernel.errSend(p, message, er)
return
}
@ -431,6 +432,7 @@ func (p process) messageSubscriberHandler(natsConn *nats.Conn, thisNode string,
if err != nil {
er := fmt.Errorf("error: gob decoding failed: %v", err)
log.Printf("%v\n", er)
fmt.Printf(" * DEBUG2: message: %#v\n", message)
p.processes.errorKernel.errSend(p, message, er)
return
}