mirror of
https://github.com/rclone/rclone.git
synced 2026-05-13 10:54:11 -04:00
Previously all log output produced by Proton-API-Bridge (stdlib log) and go-proton-api (logrus + resty's logger) bypassed rclone's logging: it ignored -v / -vv levels and didn't reach --log-file. Add a small adapter implementing the resty.Logger / bridge Logger shape that calls fs.Errorf / fs.Logf / fs.Debugf, and pass it via the new Config.Logger hook. The bridge in turn forwards the same value to go-proton-api's WithLogger option, so HTTP-layer warnings and the formerly-hardcoded logrus warnings inside go-proton-api also surface through rclone's log levels.