|
|
@ -32,9 +32,8 @@ func GetLogDescriptions() map[string]*LogDescription { |
|
|
|
descs := make(map[string]*LogDescription, len(logDescriptions)) |
|
|
|
descs := make(map[string]*LogDescription, len(logDescriptions)) |
|
|
|
for k, v := range logDescriptions { |
|
|
|
for k, v := range logDescriptions { |
|
|
|
subLogDescriptions := make([]SubLogDescription, len(v.SubLogDescriptions)) |
|
|
|
subLogDescriptions := make([]SubLogDescription, len(v.SubLogDescriptions)) |
|
|
|
for i, s := range v.SubLogDescriptions { |
|
|
|
copy(subLogDescriptions, v.SubLogDescriptions) |
|
|
|
subLogDescriptions[i] = s |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
descs[k] = &LogDescription{ |
|
|
|
descs[k] = &LogDescription{ |
|
|
|
Name: v.Name, |
|
|
|
Name: v.Name, |
|
|
|
SubLogDescriptions: subLogDescriptions, |
|
|
|
SubLogDescriptions: subLogDescriptions, |
|
|
|