mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
... and copy patterns too
This commit is contained in:
parent
e25cb5ce80
commit
3b7e759215
1 changed files with 4 additions and 1 deletions
|
|
@ -152,9 +152,12 @@ func (h *GlogHandler) WithAttrs(attrs []slog.Attr) slog.Handler {
|
||||||
}
|
}
|
||||||
h.lock.RUnlock()
|
h.lock.RUnlock()
|
||||||
|
|
||||||
|
patterns := []pattern{}
|
||||||
|
patterns = append(patterns, h.patterns...)
|
||||||
|
|
||||||
res := GlogHandler{
|
res := GlogHandler{
|
||||||
origin: h.origin.WithAttrs(attrs),
|
origin: h.origin.WithAttrs(attrs),
|
||||||
patterns: h.patterns,
|
patterns: patterns,
|
||||||
siteCache: siteCache,
|
siteCache: siteCache,
|
||||||
location: h.location,
|
location: h.location,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue