Skip to content

Commit c1f78ff

Browse files
committed
RHINENG-20967: add more debugging
1 parent 0644576 commit c1f78ff

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

listener/upload.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ func flushEvalEvents() {
310310
utils.LogWarn("err", err.Error(), WarnPayloadTracker)
311311
}
312312
utils.ObserveSecondsSince(tStart, messagePartDuration.WithLabelValues("buffer-sent-payload-tracker"))
313+
utils.LogDebug("evaluator_messages", len(eBuffer.EvalBuffer), "payload_tracker_messages", len(eBuffer.PtBuffer), "flushed buffers")
313314
// empty buffer
314315
eBuffer.EvalBuffer = eBuffer.EvalBuffer[:0]
315316
eBuffer.PtBuffer = eBuffer.PtBuffer[:0]
@@ -376,6 +377,8 @@ func updateSystemPlatform(tx *gorm.DB, accountID int, host *Host,
376377
templateID := hostTemplate(tx, accountID, host)
377378
if templateID != nil {
378379
colsToUpdate = append(colsToUpdate, "template_id")
380+
utils.LogDebug("inventoryID", host.ID, "candlepin_env", host.SystemProfile.Rhsm.Environments,
381+
"template", *templateID, "reporter", host.Reporter)
379382
}
380383

381384
updatesReqJSONString := string(updatesReqJSON)

manager/kafka/kafka.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,6 @@ func sendInventoryIDs(inventoryIDs mqueue.EvalDataSlice) {
5252
// Send given systems to re-evaluation.
5353
func RecalcSystems(inventoryAIDs []mqueue.EvalData) {
5454
batch := inventoryIDsBatch{InventoryIDs: inventoryAIDs}
55+
utils.LogDebug("systems", inventoryAIDs, "systems sent to recalc")
5556
inventoryIDsChan <- batch
5657
}

0 commit comments

Comments
 (0)