Skip to content

Commit a892518

Browse files
committed
improve logic
1 parent bbe59a2 commit a892518

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pkg/deployment/rotation/arangod_containers.go

+9-2
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,15 @@ func isOnlyLogLevelChanged(specArgs, statusArgs []string) bool {
228228
if len(logSpecArgs) != len(logStatusArgs) {
229229
return true
230230
}
231-
diffLogs := arangoStrings.DiffStrings(logSpecArgs, logStatusArgs)
232-
return len(diffLogs) > 0
231+
232+
// check if log level arguments order is the same
233+
for i, v := range logSpecArgs {
234+
if v != logStatusArgs[i] {
235+
return true
236+
}
237+
238+
}
239+
return false
233240
}
234241

235242
func splitLogLevelPrefixItems(args []string) ([]string, []string) {

0 commit comments

Comments
 (0)