Log errors when debug isn't turned on