failover_fetch.py logs in local time zone, not UTC. This causes the check_db_dump_recent.py script to return RETURN_CODE_UNKNOWN if the local time zone is not UTC.
I think the best thing to do is have the failover_fetch.py script always log in UTC. This should fix the issue and make the logs easier to read when the local time zone changes.
Seems relevant: https://stackoverflow.com/questions/6321160/how-to-set-timestamps-on-gmt-utc-on-python-logging
failover_fetch.py logs in local time zone, not UTC. This causes the
check_db_dump_recent.pyscript to returnRETURN_CODE_UNKNOWNif the local time zone is not UTC.I think the best thing to do is have the
failover_fetch.pyscript always log in UTC. This should fix the issue and make the logs easier to read when the local time zone changes.Seems relevant: https://stackoverflow.com/questions/6321160/how-to-set-timestamps-on-gmt-utc-on-python-logging