Add log error in ErrCallback to prevent defer to silent python error

I'm not sure it's the best way to do it but it was helping me to log python error and see the bugs in my code which handle hl7 message.