stash/pkg/plugin
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
..
common Support scraper logging to specific log levels (#1648) 2021-09-17 09:09:44 +10:00
examples Apple Silicon Support, Bump Go to 1.17, refactor docker/build/x86_64/Dockerfile (#1646) 2021-09-08 15:30:15 +10:00
js Plugin hooks (#1452) 2021-06-11 17:24:58 +10:00
util Include server host in plugin input (#1514) 2021-06-21 14:38:44 +10:00
args.go Add plugin tasks (#651) 2020-08-08 12:05:35 +10:00
config.go Plugin hooks (#1452) 2021-06-11 17:24:58 +10:00
convert.go Add plugin tasks (#651) 2020-08-08 12:05:35 +10:00
hooks.go Plugin hooks (#1452) 2021-06-11 17:24:58 +10:00
js.go Plugin hooks (#1452) 2021-06-11 17:24:58 +10:00
log.go Scraper log improvements (#1741) 2021-09-19 10:06:34 +10:00
plugins.go Load TLS config files from config path before stash home (#1678) 2021-08-31 19:37:45 +10:00
raw.go Scraper log improvements (#1741) 2021-09-19 10:06:34 +10:00
rpc.go Scraper log improvements (#1741) 2021-09-19 10:06:34 +10:00
task.go Plugin hooks (#1452) 2021-06-11 17:24:58 +10:00