diff --git a/logger/datastructures.go b/logger/datastructures.go index 5e74513..6601a14 100644 --- a/logger/datastructures.go +++ b/logger/datastructures.go @@ -150,9 +150,7 @@ func NewOutlets() *Outlets { func (os *Outlets) DeepCopy() (copy *Outlets) { copy = NewOutlets() for level := range os.outs { - for i := range os.outs[level] { - copy.outs[level] = append(copy.outs[level], os.outs[level][i]) - } + copy.outs[level] = append(copy.outs[level], os.outs[level]...) } return copy }