diff --git a/tools/simulators.cpp b/tools/simulators.cpp index 3222eff..c939d75 100644 --- a/tools/simulators.cpp +++ b/tools/simulators.cpp @@ -30,10 +30,12 @@ void Simulators::run() { if (this->m_simulators.empty()) { + spdlog::warn("no simulators found"); return; } if (this->m_current_simulator.empty()) { + spdlog::warn("no active simulator"); return; } @@ -45,10 +47,12 @@ void Simulators::stop() { if (this->m_simulators.empty()) { + spdlog::warn("no simulators found"); return; } if (this->m_current_simulator.empty()) { + spdlog::warn("no active simulator"); return; } @@ -59,15 +63,18 @@ void Simulators::switch_simulator(std::string name) { if (this->m_simulators.empty()) { + spdlog::warn("no simulators found"); return; } if (!this->m_current_simulator.empty()) { + spdlog::info("stopping current simulator {} and switching to {}", m_current_simulator, name); this->m_simulators.at(m_current_simulator)->stop(); } if (this->m_simulators.find(name) == this->m_simulators.end()) { + spdlog::warn("simulator {} not found", name); return; }