1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

refactor(misc): Use proper slog.XXX instead of slog.Any

This has close to no impact for now, as our slog.Debug/Info/... are leaking
their parameters to the heap, but using proper typing instead of Any allows
to skip some reflection-based computation, making things marginally faster,
and removing the corresponding heap leak.
This commit is contained in:
jvoisin 2025-06-29 17:50:40 +02:00 committed by Frédéric Guillot
parent fcf86e33b9
commit 560be66147
3 changed files with 7 additions and 7 deletions

View file

@ -166,7 +166,7 @@ func logFilterAction(entry *model.Entry, feed *model.Feed, filterRule string, fi
slog.String("feed_url", feed.FeedURL),
slog.String("entry_url", entry.URL),
slog.String("filter_rule", filterRule),
slog.Any("filter_action", filterAction),
slog.String("filter_action", string(filterAction)),
)
}