Compare commits

...

2 Commits

Author SHA1 Message Date
Felipe M cfc44ae669
Version bump: 1.0.1 2021-02-21 22:19:33 +01:00
Felipe M 5c6918e3ce
Moved cache log lines to trace level 2021-02-21 22:14:37 +01:00
1 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ func doRequest(method string, requestURL string) (*Response, error) {
Method: method,
URL: parsedURL,
Header: map[string][]string{
"User-Agent": {"go-mangadex/1.0.0"},
"User-Agent": {"go-mangadex/1.0.1"},
},
}
@ -72,8 +72,8 @@ func doRequest(method string, requestURL string) (*Response, error) {
logrus.Tracef("Response body: %s", body)
// Write cache
logrus.Infof("Writting cache for %s", parsedURL.String())
logrus.Infof("Writting cache to: %s", getCacheFilename(parsedURL))
logrus.Tracef("Writting cache for %s", parsedURL.String())
logrus.Tracef("Writting cache to: %s", getCacheFilename(parsedURL))
errWriteCache := ioutil.WriteFile(getCachePath(parsedURL), body, 0644)
if errWriteCache != nil {
logrus.Warnf("Can't write to cache: %s", errWriteCache)