Skip to content
Snippets Groups Projects
Commit 4fe23365 authored by Florent Thiery's avatar Florent Thiery
Browse files

add debug

parent 26aca704
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ def check_local_backup(path):
if os.path.isdir(d):
subd = os.path.join(path, d)
latest = os.path.join(subd, 'latest')
print('Checking %s' % latest)
if os.path.exists(latest):
mtime = os.path.getmtime(latest)
d = datetime.fromtimestamp(mtime)
......@@ -97,6 +98,7 @@ def check_local_backups(paths):
folders = paths.split(',')
for f in folders:
if f not in blacklist:
print('Checking folder %s' % f)
all_ok = min(check_local_backup(f), all_ok)
return all_ok
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment