Before this change, if rclone is used as a library and logrus is used after a call to rc `sync/bisync`, logging does not work anymore and leads to writing to a closed pipe. This change restores the output correctly. Fixes #8158
Fixes #118 Co-authored-by: Chris Nelson <stuff@cjnaz.com>