Skip to content

Commit

Permalink
chore: fix capitalization in disruption log (#1530)
Browse files Browse the repository at this point in the history
  • Loading branch information
njtran authored Aug 7, 2024
1 parent b01f662 commit b22b0fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controllers/disruption/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"context"
"errors"
"fmt"
"strings"
"sync"
"time"

Expand Down Expand Up @@ -184,7 +185,7 @@ func (c *Controller) disrupt(ctx context.Context, disruption Method) (bool, erro
// 3. Add Command to orchestration.Queue to wait to delete the candiates.
func (c *Controller) executeCommand(ctx context.Context, m Method, cmd Command, schedulingResults scheduling.Results) error {
commandID := uuid.NewUUID()
log.FromContext(ctx).WithValues("command-id", commandID).Info(fmt.Sprintf("disrupting via %s %s", m.Reason(), cmd))
log.FromContext(ctx).WithValues("command-id", commandID).Info(fmt.Sprintf("disrupting %s nodeclaim(s), %s", strings.ToLower(string(m.Reason())), cmd))

stateNodes := lo.Map(cmd.candidates, func(c *Candidate, _ int) *state.StateNode {
return c.StateNode
Expand Down

0 comments on commit b22b0fe

Please sign in to comment.