Adding error logging for POST errors
Merge pull request #1 from OttoMT/error_logging

Adding error logging for POST errors