Skip to content

Commit

Permalink
add error to fatal log
Browse files Browse the repository at this point in the history
  • Loading branch information
bwagner5 committed Nov 22, 2021
1 parent 3b86255 commit 7fb9081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/provisioning/binpacking/packer.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (p *Packer) Pack(ctx context.Context, schedule *scheduling.Schedule, instan
}
key, err := hashstructure.Hash(packing, hashstructure.FormatV2, &hashstructure.HashOptions{SlicesAsSets: true})
if err != nil {
logging.FromContext(ctx).Fatal("Unable to hash packings while binpacking")
logging.FromContext(ctx).Fatalf("Unable to hash packings while binpacking: %s", err.Error())
}
if mainPack, ok := packs[key]; ok {
mainPack.NodeQuantity++
Expand Down

0 comments on commit 7fb9081

Please sign in to comment.