Skip to content

Commit

Permalink
chore: re-order log context fields (trufflesecurity#3430)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgmz authored Oct 23, 2024
1 parent 9ad281a commit 06e37ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sources/source_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (s *SourceManager) runWithUnits(ctx context.Context, source SourceUnitEnumC
// TODO: Catch panics and add to report.
defer close(chunkReporter.chunkCh)
id, kind := unit.SourceUnitID()
ctx := context.WithValues(ctx, "unit", id, "unit_kind", kind)
ctx := context.WithValues(ctx, "unit_kind", kind, "unit", id)
ctx.Logger().V(3).Info("chunking unit")
if err := source.ChunkUnit(ctx, unit, chunkReporter); err != nil {
report.ReportError(Fatal{ChunkError{Unit: unit, Err: err}})
Expand Down

0 comments on commit 06e37ca

Please sign in to comment.