File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ func (c *HAProxyController) globalCfg() {
47
47
var newGlobal , global * models.Global
48
48
var newLg models.LogTargets
49
49
var err error
50
- var updated []string
51
50
global , err = c .haproxy .GlobalGetConfiguration ()
52
51
if err != nil {
53
52
logger .Error (err )
@@ -91,13 +90,12 @@ func (c *HAProxyController) globalCfg() {
91
90
diff := newGlobal .Diff (* global )
92
91
if len (diff ) != 0 {
93
92
logger .Error (c .haproxy .GlobalPushConfiguration (* newGlobal ))
94
- instance .Restart ("Global config updated: %s " , strings . Join ( updated , " \n " ) )
93
+ instance .Restart ("Global config updated: %v " , diff )
95
94
}
96
95
diff = newLg .Diff (lg )
97
- // updated = deep.Equal(newLg, lg)
98
96
if len (diff ) != 0 {
99
97
logger .Error (c .haproxy .GlobalPushLogTargets (newLg ))
100
- instance .Restart ("Global log targets updated: %s " , strings . Join ( updated , " \n " ) )
98
+ instance .Restart ("Global log targets updated: %v " , diff )
101
99
}
102
100
c .globalCfgSnipp ()
103
101
}
You can’t perform that action at this time.
0 commit comments