aboutsummaryrefslogtreecommitdiff
path: root/restic.py
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2018-11-03 22:40:53 -0700
committerMax Resnick <max@ofmax.li>2018-11-03 22:40:53 -0700
commit47eefe5fafc70dbc585e63a2bf03932d2e7c2759 (patch)
treee89a184d3bea768606e613e85edad0df57a16ac0 /restic.py
parent75a06c534e0f5bf872d6818f9de4bfb39e64bc9a (diff)
downloadrestic-wrapper-47eefe5fafc70dbc585e63a2bf03932d2e7c2759.tar.gz
add units, change some pathssystemd-units
Diffstat (limited to '')
-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