Commit ae6d89c8 authored by Dominik Charousset's avatar Dominik Charousset

Fix hiding warning in caf-vec

parent 693d0626
...@@ -654,10 +654,10 @@ void second_pass(blocking_actor* self, const group& grp, ...@@ -654,10 +654,10 @@ void second_pass(blocking_actor* self, const group& grp,
++line; ++line;
// increment local time // increment local time
auto& st = state(plain_entry.id); auto& st = state(plain_entry.id);
// do not produce log output for silent actors but still track messages // do not produce log output for internal actors but still track messages
// through those actors, because they might be forwarding messages // through those actors, because they might be forwarding messages
bool silent = drop_hidden_actors && st.eid.hidden; bool internal = drop_hidden_actors && st.eid.hidden;
if (!silent) if (!internal)
st.clock[st.eid.vid] += 1; st.clock[st.eid.vid] += 1;
// generate enhanced entry (with incomplete JSON timestamp for now) // generate enhanced entry (with incomplete JSON timestamp for now)
enhanced_log_entry entry{plain_entry, st.eid, st.clock, string{}}; enhanced_log_entry entry{plain_entry, st.eid, st.clock, string{}};
...@@ -738,7 +738,7 @@ void second_pass(blocking_actor* self, const group& grp, ...@@ -738,7 +738,7 @@ void second_pass(blocking_actor* self, const group& grp,
oss << '}'; oss << '}';
entry.json_vstamp = oss.str(); entry.json_vstamp = oss.str();
// print entry to output file // print entry to output file
if (!silent) { if (!internal) {
std::lock_guard<std::mutex> guard{out_mtx}; std::lock_guard<std::mutex> guard{out_mtx};
out << entry << '\n'; out << entry << '\n';
} }
...@@ -773,7 +773,7 @@ void caf_main(actor_system& sys, const config& cfg) { ...@@ -773,7 +773,7 @@ void caf_main(actor_system& sys, const config& cfg) {
verbosity_level vl; verbosity_level vl;
switch (cfg.verbosity) { switch (cfg.verbosity) {
case 0: case 0:
vl = verbosity_level::silent; vl = silent;
break; break;
case 1: case 1:
vl = verbosity_level::informative; vl = verbosity_level::informative;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment