Log errors in output