Attemt to fix logger not logging