Skip to content

Conduit does not log exporter callback errors #163

@urtho

Description

@urtho

exporterHandler should log errors from failed callbacks but uses incorrect variable for that.

this little patch solves it

@@ -631,7 +631,7 @@ func (p *pipelineImpl) exporterHandler(exporter exporters.Exporter, blkChan plug
                                        if callbackErr != nil {
                                                p.logger.Errorf(
                                                        "exporter %s # round %d failed callback #%d but CONTINUING to NextRound=%d: %v",
-                                                       eName, lastRound, i, nextRound, lastError,
+                                                       eName, lastRound, i, nextRound, callbackErr,
                                                )
                                        }
                                }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions