stash/pkg/scraper
gitgiggety b83ce29ac4
Scraper log improvements (#1741)
* Fix logs from scraper and plugins not being shown in UI

Using `logger.` in the logger package to write logs is "incorrect". This
as the package contains a variable named `logger` which contains the
logrus instance. So instead of the log line being handled by the custom
log implementation / wrapper which makes sure the lines are shown in the
UI as well, it's written to logrus directly meaning the wrapper is
skipped.

This "issue" is obviously triggered because in any other place
`logger.X` can be used and it will used the custom logger package /
wrapper which works fine.

* Add plugin / scraper name to logging output

Indicate which plugin / scraper wrote a log message by including its
name to the `[Scrape]` prefix.

* Add missing addLogItem call
2021-09-19 10:06:34 +10:00
..
stashbox Unify scrape refactor (#1630) 2021-09-07 11:54:22 +10:00
action.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
config.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
cookies.go Update `chromedp` to fix console errors (#1521) 2021-06-23 08:05:58 +10:00
freeones.go added details, deathdate, hair color, weight to performers and added details to studios (#1274) 2021-04-16 16:06:35 +10:00
image.go Unify scrape refactor (#1630) 2021-09-07 11:54:22 +10:00
json.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
json_test.go added details, deathdate, hair color, weight to performers and added details to studios (#1274) 2021-04-16 16:06:35 +10:00
mapped.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
mapped_test.go scraper/mapped: Add feetToCm post process. (#711) 2020-08-12 11:17:43 +10:00
matchers.go Studio aliases (#1660) 2021-09-09 18:13:42 +10:00
query_url.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
scrapers.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
script.go Scraper log improvements (#1741) 2021-09-19 10:06:34 +10:00
stash.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
url.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
xpath.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
xpath_test.go Unify scrape refactor (#1630) 2021-09-07 11:54:22 +10:00