Commit 0bb148f
BUG/MINOR: prevents unecessary restart when using multiple syslog servers
When using more than one syslog server, the algorithm for comparing log targets
never succeeds, because the conversion of each `syslog-server` annotation's
line into a `models.LogTarget` will always set the `.Index` field equal to 0.
In this scenario, any change causes a restart because `lg` and `newLg` will
never be equal (either because of the slice order, or because of the different
`.Index` fields)1 parent c72ac48 commit 0bb148f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments