Avoid flushing empty buffers in the `Provenance` backend
Also, remove the use of f-strings when logging to avoid unnecessary parameter resolution.
Remove old debug logging and improve other's messages
Depends on !77 (closed)
Migrated from D6208 (view on Phabricator)