Make error logging cleaner