Skip to content

Commit a0b8a46

Browse files
authored
fix: Include table name in logs on panic (#505)
1 parent fc9c7ab commit a0b8a46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/source_scheduler_dfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (p *SourcePlugin) resolveTableDfs(ctx context.Context, table *schema.Table,
9292
scope.SetTag("table", table.Name)
9393
sentry.CurrentHub().CaptureMessage(stack)
9494
})
95-
p.logger.Error().Interface("error", err).Str("stack", stack).Msg("table resolver finished with panic")
95+
logger.Error().Interface("error", err).Str("stack", stack).Msg("table resolver finished with panic")
9696
atomic.AddUint64(&tableMetrics.Panics, 1)
9797
}
9898
close(res)

0 commit comments

Comments
 (0)