Fix logging print errors.