From 8d29ea018b573300d09a0afd09720c2ffca01dfe Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 14 Nov 2024 10:40:55 -0500 Subject: [PATCH] Add debug logging to Reports (#88) --- llo/plugin_reports.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llo/plugin_reports.go b/llo/plugin_reports.go index cd40a86..a557a61 100644 --- a/llo/plugin_reports.go +++ b/llo/plugin_reports.go @@ -73,6 +73,10 @@ func (p *Plugin) reports(ctx context.Context, seqNr uint64, rawOutcome ocr3types outcome.LifeCycleStage != LifeCycleStageProduction, } + if p.Config.VerboseLogging { + p.Logger.Debugw("Emitting report", "lifeCycleStage", outcome.LifeCycleStage, "channelID", cid, "report", report, "stage", "Report", "seqNr", seqNr) + } + encoded, err := p.encodeReport(ctx, report, cd) if err != nil { if ctx.Err() != nil {