Update logging to log Errors, when they occur