|
|
@ -279,15 +279,15 @@ void DisinfectionCtrlService::traceState() { |
|
|
|
|
|
|
|
tracecontent += fmt::format("TRACE [{}] ", string(sm.getState())); |
|
|
|
tracecontent += fmt::format("e:{} ", s_error); |
|
|
|
if (s_h2o2Snapshot->getSensorDataNum() >= 1) tracecontent += fmt::format("s0:[ho2o2 {} rs {} rh {}]", s_h2o2Snapshot->h2o2[0], s_h2o2Snapshot->rs[0], s_h2o2Snapshot->rh[0]); |
|
|
|
if (s_h2o2Snapshot->getSensorDataNum() >= 2) tracecontent += fmt::format("s1:[ho2o2 {} rs {} rh {}]", s_h2o2Snapshot->h2o2[1], s_h2o2Snapshot->rs[1], s_h2o2Snapshot->rh[1]); |
|
|
|
if (s_h2o2Snapshot->getSensorDataNum() >= 3) tracecontent += fmt::format("s2:[ho2o2 {} rs {} rh {}]", s_h2o2Snapshot->h2o2[2], s_h2o2Snapshot->rs[2], s_h2o2Snapshot->rh[2]); |
|
|
|
if (s_h2o2Snapshot->getSensorDataNum() == 1) tracecontent += fmt::format("s0:[ho2o2 {:>3} rs {:>3} rh {:>3}]", s_h2o2Snapshot->h2o2[0], s_h2o2Snapshot->rs[0], s_h2o2Snapshot->rh[0]); |
|
|
|
if (s_h2o2Snapshot->getSensorDataNum() == 2) tracecontent += fmt::format("s1:[ho2o2 {:>3} {:>3} rs {:>3} {:>3} rh {:>3} {:>3}]", s_h2o2Snapshot->h2o2[0], s_h2o2Snapshot->h2o2[1], s_h2o2Snapshot->rs[0], s_h2o2Snapshot->rs[1], s_h2o2Snapshot->rh[0], s_h2o2Snapshot->rh[1]); |
|
|
|
if (s_h2o2Snapshot->getSensorDataNum() == 3) tracecontent += fmt::format("s2:[ho2o2 {:>3} {:>3} {:>3} rs {:>3} {:>3} {:>3} rh {:>3} {:>3} {:>3}]", s_h2o2Snapshot->h2o2[0], s_h2o2Snapshot->h2o2[1], s_h2o2Snapshot->h2o2[2], s_h2o2Snapshot->rs[0], s_h2o2Snapshot->rs[1], s_h2o2Snapshot->rs[2], s_h2o2Snapshot->rh[0], s_h2o2Snapshot->rh[1], s_h2o2Snapshot->rh[2]); |
|
|
|
|
|
|
|
tracecontent += fmt::format("dvalue:{} ", s_dvalue); |
|
|
|
tracecontent += fmt::format("log:{}->{} ", s_nlog, m_tlog); |
|
|
|
tracecontent += fmt::format("takebreak:{} ", s_isDisinfectionTakeBreak); |
|
|
|
tracecontent += fmt::format("remaintime:{} ", s_remaintime); |
|
|
|
tracecontent += fmt::format("heartTemperature:{:.2f} ", dics->Heater_readTemperature()); |
|
|
|
tracecontent += fmt::format("break:{} ", s_isDisinfectionTakeBreak); |
|
|
|
tracecontent += fmt::format("rtime:{} ", s_remaintime); |
|
|
|
tracecontent += fmt::format("hTemp:{:.2f} ", dics->Heater_readTemperature()); |
|
|
|
|
|
|
|
logger->info(tracecontent); |
|
|
|
} |
|
|
|