aboutsummaryrefslogtreecommitdiff
path: root/restic.py
diff options
context:
space:
mode:
Diffstat (limited to 'restic.py')
-rw-r--r--restic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/restic.py b/restic.py
index 8033103..daf4c40 100644
--- a/restic.py
+++ b/restic.py
@@ -24,7 +24,7 @@ LOGLEVELS = {'DEBUG': logging.DEBUG,
'WARNING': logging.WARNING,
'ERROR': logging.ERROR}
# TODO should be a configurable location
-logging.basicConfig(filename='restic.log',
+logging.basicConfig(filename='~/.local/logs/restic.log',
level=LOGLEVELS[os.getenv('RESTIC_LOGLEVEL', 'WARNING')])
log = logging.getLogger(__name__)
# cmd line parser