aboutsummaryrefslogtreecommitdiff
path: root/internal/reader/rewrite/rewrite_functions.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/reader/rewrite/rewrite_functions.go')
-rw-r--r--internal/reader/rewrite/rewrite_functions.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/reader/rewrite/rewrite_functions.go b/internal/reader/rewrite/rewrite_functions.go
index 6950c333..249ee183 100644
--- a/internal/reader/rewrite/rewrite_functions.go
+++ b/internal/reader/rewrite/rewrite_functions.go
@@ -7,12 +7,12 @@ import (
"encoding/base64"
"fmt"
"html"
+ "log/slog"
"net/url"
"regexp"
"strings"
"miniflux.app/v2/internal/config"
- "miniflux.app/v2/internal/logger"
"github.com/PuerkitoBio/goquery"
"github.com/yuin/goldmark"
@@ -359,7 +359,9 @@ func addHackerNewsLinksUsing(entryContent, app string) string {
open_with_hack := `<a href="` + url + `">Open with HACK</a>`
a.Parent().AppendHtml(" " + open_with_hack)
} else {
- logger.Error("[openHackerNewsLinksWith] unknown app provided: %q", app)
+ slog.Warn("Unknown app provided for openHackerNewsLinksWith rewrite rule",
+ slog.String("app", app),
+ )
return
}
})