Skip to content

Commit

Permalink
Rearrange logs
Browse files Browse the repository at this point in the history
Signed-off-by: Galo Navarro <[email protected]>
  • Loading branch information
srvaroa committed Nov 11, 2023
1 parent 632f5f8 commit bce3e33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/labeler.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ func (l *Labeler) ExecuteOn(target *Target) error {
}

log.Printf("Current labels: `%v`", intentions)
log.Printf("Preliminary label updates: `%v`", labelUpdates)
if config.AppendOnly {
log.Printf("AppendOnly is active, removals are forbidden")
}
log.Printf("Preliminary label updates: `%v`", labelUpdates)
// update, adding new ones and unflagging those to remove if
// necessary
for label, isDesired := range labelUpdates.set {
Expand All @@ -188,6 +188,7 @@ func (l *Labeler) ExecuteOn(target *Target) error {
intentions[label] = isDesired
}
}
log.Printf("Final label updates: `%v`", labelUpdates)

// filter out only labels that must be set
desiredLabels := []string{}
Expand Down

0 comments on commit bce3e33

Please sign in to comment.