Skip to content

Commit b28b492

Browse files
committed
[core] Added debug info log for worker status reports
1 parent 6ee6ddb commit b28b492

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main.cpp

+7-2
Original file line numberDiff line numberDiff line change
@@ -230,15 +230,20 @@ class StatusReporter : public PeriodicJob {
230230
static Data::Producer s_dp("Status Reports");
231231
if (s_has_shutdown) return;
232232
if (!m_fetch->busy()) {
233+
Log::debug(Log::CODEBASE, "[codebase] Start collecting status");
234+
233235
WorkerManager::get().status(
234236
[this](Status &status) {
235237
if (m_send_metrics) {
238+
Log::debug(Log::CODEBASE, "[codebase] Start collecting metrics");
236239
WorkerManager::get().stats(
237240
[&](stats::MetricDataSum &metric_data_sum) {
241+
Log::debug(Log::CODEBASE, "[codebase] Start sending status report");
238242
send(status, &metric_data_sum);
239243
}
240244
);
241245
} else {
246+
Log::debug(Log::CODEBASE, "[codebase] Start sending status report");
242247
send(status, nullptr);
243248
}
244249
}
@@ -283,8 +288,8 @@ class StatusReporter : public PeriodicJob {
283288

284289
Log::debug(
285290
Log::CODEBASE,
286-
"[codebase] Sent status report in %dms (size = %d)",
287-
int(utils::now() - time), size
291+
"[codebase] Sent status report in %dms (size = %d, response = %d)",
292+
int(utils::now() - time), size, head->status
288293
);
289294
}
290295
);

0 commit comments

Comments
 (0)