fix logger init