mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
fix(icon): update incorrect log messages
This commit is contained in:
parent
b20a8c97b0
commit
06cbf1b3b3
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ func (f *iconFinder) fetchIconsFromHTMLDocument() (*model.Icon, error) {
|
||||||
slog.Any("error", err),
|
slog.Any("error", err),
|
||||||
)
|
)
|
||||||
} else if icon != nil {
|
} else if icon != nil {
|
||||||
slog.Debug("Found icon from HTML document",
|
slog.Debug("Downloaded icon from HTML document",
|
||||||
slog.String("website_url", f.websiteURL),
|
slog.String("website_url", f.websiteURL),
|
||||||
slog.String("icon_url", iconURL),
|
slog.String("icon_url", iconURL),
|
||||||
)
|
)
|
||||||
|
@ -196,7 +196,7 @@ func resizeIcon(icon *model.Icon) *model.Icon {
|
||||||
r := bytes.NewReader(icon.Content)
|
r := bytes.NewReader(icon.Content)
|
||||||
|
|
||||||
if !slices.Contains([]string{"image/jpeg", "image/png", "image/gif"}, icon.MimeType) {
|
if !slices.Contains([]string{"image/jpeg", "image/png", "image/gif"}, icon.MimeType) {
|
||||||
slog.Info("icon isn't a png/gif/jpeg/ico, can't resize", slog.String("mimetype", icon.MimeType))
|
slog.Info("icon isn't a png/gif/jpeg, can't resize", slog.String("mimetype", icon.MimeType))
|
||||||
return icon
|
return icon
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue