Skip to content

Commit

Permalink
improve logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jwierzbo committed Jun 23, 2024
1 parent bbe59a2 commit a892518
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkg/deployment/rotation/arangod_containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,15 @@ func isOnlyLogLevelChanged(specArgs, statusArgs []string) bool {
if len(logSpecArgs) != len(logStatusArgs) {
return true
}
diffLogs := arangoStrings.DiffStrings(logSpecArgs, logStatusArgs)
return len(diffLogs) > 0

// check if log level arguments order is the same
for i, v := range logSpecArgs {
if v != logStatusArgs[i] {
return true
}

}
return false
}

func splitLogLevelPrefixItems(args []string) ([]string, []string) {
Expand Down

0 comments on commit a892518

Please sign in to comment.