update the logging to include errors