Error logging improvements (#3768)

* Improve auto-tag error messages
* Ignore another context canceled error
* Ignore more graphql context canceled errors
This commit is contained in:
DingDongSoLong4
2023-05-26 01:49:00 +02:00
committed by GitHub
parent 62b6457f4e
commit cc9ded05a3
3 changed files with 136 additions and 103 deletions

View File

@@ -664,7 +664,7 @@ func performerFragmentToScrapedScenePerformer(p graphql.PerformerFragment) *mode
func getFirstImage(ctx context.Context, client *http.Client, images []*graphql.ImageFragment) *string {
ret, err := fetchImage(ctx, client, images[0].URL)
if err != nil {
if err != nil && !errors.Is(err, context.Canceled) {
logger.Warnf("Error fetching image %s: %s", images[0].URL, err.Error())
}