Commit 904cb457 authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

Change garbage collection messages to ".../failed/done" style.

parent 4fd4a7aa
......@@ -59,16 +59,16 @@ struct GarbageCollector {
async_sleep(_executor, chrono::minutes(7), cancel, yield[ec]);
if (cancel || ec) break;
LOG_DEBUG("Bep5HTTP: Begin garbage collection round");
LOG_DEBUG("Bep5HTTP: Collecting garbage...");
http_store.for_each([&] (auto rr, auto y) {
sys::error_code e;
auto k = keep(std::move(rr), y[e]);
if (cancel) ec = asio::error::operation_aborted;
return or_throw(y, e, k);
}, cancel, yield[ec]);
if (ec) LOG_WARN( "Bep5HTTP: Garbage collection round failed: "
, ec.message());
LOG_DEBUG("Bep5HTTP: End garbage collection round");
if (ec) LOG_WARN("Bep5HTTP: Collecting garbage: failed"
" ec:", ec.message());
LOG_DEBUG("Bep5HTTP: Collecting garbage: done");
}
LOG_DEBUG("Bep5HTTP: Garbage collector stopped");
});
......
Supports Markdown
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