Skip to content

failover_fetch.py logs in local timezone, not UTC #31

@gregcorbett

Description

@gregcorbett

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions