Fix logger usage before logger initialized