Skip to content

Commit

Permalink
print last_sync date in debug mode (#30)
Browse files Browse the repository at this point in the history
Adding debug last sync timestamp output
  • Loading branch information
camandel authored and ggatward committed Dec 22, 2017
1 parent 61153cb commit 89ea6ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions check_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def check_running_tasks(clear):
if repo_status['last_sync']['result'] == 'warning':
incomplete_sync = 1
print helpers.WARNING + "Incomplete: " + helpers.ENDC + repo_status['name']
else:
msg = repo_status['name'] + " - last_sync: " + repo_status['last_sync']['ended_at']
helpers.log_msg(msg, 'DEBUG')

# If we have detected incomplete sync tasks, ask the user if they want to export anyway.
# This isn't fatal, but *MAY* lead to inconsistent repositories on the dieconnected sat.
Expand Down

0 comments on commit 89ea6ec

Please sign in to comment.