rclone/lib/http/serve
Benjamin Legrand 8a6fc8535d accounting: fix global error acounting
fs.CountError is called when an error is encountered. The method was
calling GlobalStats().Error(err) which incremented the error at the
global stats level. This led to calls to core/stats with group= filter
returning an error count of 0 even if errors actually occured.

This change requires the context to be provided when calling
fs.CountError. Doing so, we can retrieve the correct StatsInfo to
increment the errors from.

Fixes #5865
2024-09-30 17:20:42 +01:00
..
dir.go accounting: fix global error acounting 2024-09-30 17:20:42 +01:00
dir_test.go accounting: fix global error acounting 2024-09-30 17:20:42 +01:00
serve.go rc: add srcFs and dstFs to core/stats and core/transferred stats 2024-02-02 11:43:10 +00:00
serve_test.go lib/http: fix tests after go1.23 update 2024-07-20 10:54:47 +01:00