fix broken logging from previous commit