Fixed broken logging