1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-12 16:58:36 +00:00

Add logger

This commit is contained in:
Frédéric Guillot 2017-12-15 18:55:57 -08:00
parent c6d9eb3614
commit 1d8193b892
56 changed files with 228 additions and 192 deletions

View file

@ -8,7 +8,8 @@ import (
"bufio"
"bytes"
"encoding/xml"
"log"
"github.com/miniflux/miniflux/logger"
)
// Serialize returns a SubcriptionList in OPML format.
@ -37,7 +38,7 @@ func Serialize(subscriptions SubcriptionList) string {
encoder := xml.NewEncoder(writer)
encoder.Indent(" ", " ")
if err := encoder.Encode(feeds); err != nil {
log.Println(err)
logger.Error("[OPML:Serialize] %v", err)
return ""
}