Skip to content

Commit 76f5a03

Browse files
committed
BUG/MINOR: log: don't store log_targets to config when empty
1 parent 68f83f9 commit 76f5a03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configuration/configuration.go

+4
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ func (c *Configuration) Save() error {
260260
cfg := c.storage.Get()
261261
cfg.ServiceDiscovery = nil
262262
}
263+
if len(c.LogTargets) == 0 {
264+
cfg := c.storage.Get()
265+
cfg.LogTargets = nil
266+
}
263267
if cfg.Mode.Load() != "cluster" {
264268
storage := cfg.storage.Get()
265269
storage.Cluster = nil

0 commit comments

Comments
 (0)