Optional error logging for PayloadRegexDecoder

My attempt at fixing #279 since I promised to help on something this weekend :) 

I hope it's an acceptable addition, I didn't write any Go in a while either so I hope I didn't mess anything up. `make test` says there is no test target so not sure how to run the test suite, but it builds at least.