1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-01 11:16:16 +00:00

Allow logging of errors but not info.

This commit is contained in:
Thomas Harte
2025-09-05 14:25:56 -04:00
parent 26f82e8143
commit 4d302da9fa
2 changed files with 23 additions and 13 deletions

View File

@@ -71,7 +71,7 @@ bool MultiMachine::would_collapse(const std::vector<std::unique_ptr<DynamicMachi
void MultiMachine::did_run_machines(MultiTimedMachine &) {
std::lock_guard machines_lock(machines_mutex_);
if constexpr (logger.enabled) {
if constexpr (logger.InfoEnabled) {
auto line = logger.info();
for(const auto &machine: machines_) {
auto timed_machine = machine->timed_machine();