Skip to content

Commit

Permalink
eventhub: fix mistaken formatting in log call (#1387)
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex authored Feb 27, 2024
1 parent 7df7735 commit 92d4218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/connectors/eventhub/eventhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (c *EventHubConnector) GetLastOffset(ctx context.Context, jobName string) (
func (c *EventHubConnector) SetLastOffset(ctx context.Context, jobName string, offset int64) error {
err := c.pgMetadata.UpdateLastOffset(ctx, jobName, offset)
if err != nil {
c.logger.Error(fmt.Sprintf("failed to update last offset: %v", err))
c.logger.Error("failed to update last offset", slog.Any("error", err))
return err
}

Expand Down Expand Up @@ -143,7 +143,7 @@ func (c *EventHubConnector) processBatch(

json, err := record.GetItems().ToJSONWithOpts(toJSONOpts)
if err != nil {
c.logger.Info("failed to convert record to json: %v", err)
c.logger.Info("failed to convert record to json", slog.Any("error", err))
return 0, err
}

Expand Down

0 comments on commit 92d4218

Please sign in to comment.