Skip to content

Commit f815cbd

Browse files
Merge pull request #162 from ThomasWaldmann/rclone-unreachable
rclone: add BORGSTORE_RCLONE_DEBUG env var
2 parents f55f30c + 3a4bfce commit f815cbd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/borgstore/backends/rclone.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
RCLONE = os.environ.get("RCLONE_BINARY", "rclone")
3232

3333
# Debug HTTP requests and responses
34-
if False:
34+
RCLONE_DEBUG = os.environ.get("BORGSTORE_RCLONE_DEBUG", "0")
35+
if RCLONE_DEBUG.strip().lower() in ("1", "true", "yes", "y", "on"):
3536
import logging
3637
import http.client as http_client
3738

0 commit comments

Comments
 (0)