Fixing logger initialization when codegen logging is disabled.