]> git.lizzy.rs Git - go-anidb.git/blobdiff - filecache.go
anidb: Allow setting the Logger to use for logging traffic
[go-anidb.git] / filecache.go
index e590a73d7bc529ba07272a2afeb1f2c7c74ac872..cb8d528281a9f47f20f07de47d2ba9a1fb396b87 100644 (file)
@@ -6,7 +6,6 @@ import (
        "github.com/Kovensky/go-anidb/udp"
        "github.com/Kovensky/go-fscache"
        "image"
-       "log"
        "regexp"
        "sort"
        "strconv"
@@ -300,7 +299,7 @@ func (adb *AniDB) parseFileResponse(f **File, reply udpapi.APIReply, calledFromF
                        if partial {
                                if calledFromFIDsByGID {
                                        epno = test
-                                       log.Printf("UDP!!! FID %d is only part of episode %s with no complementary files", fid, epno)
+                                       adb.Logger.Printf("UDP!!! FID %d is only part of episode %s with no complementary files", fid, epno)
                                } else if len(test) == 1 && test[0].Start.Number == test[0].End.Number {
                                        fids := []int{}