Fix borked logging statements