Fixed the broken logging