Fixed with multi-threading if m_logger is nullptr