Skip to content
Snippets Groups Projects
Commit e48f407c authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

show date on failure

parent 212afdda
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ def test_last_backup_is_recent(server: str) -> bool:
date = datetime.strptime(last, "%Y-%m-%d-%H%M%S")
# check age
if (datetime.now() - date).days > MAX_AGE:
u.error("older than {} days".format(MAX_AGE))
u.error("older than {} days: {}".format(MAX_AGE, date))
return False
u.success("less than {} days old".format(MAX_AGE))
return True
......
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