Merge ~raharper/cloud-init:logging-gmtime into cloud-init:master
Proposed by
Ryan Harper
Status: | Merged |
---|---|
Approved by: | Scott Moser |
Approved revision: | 7c790cbcc882dc164a8fbfdb0b352c18b74614b3 |
Merged at revision: | 556a0220734097aa4e9fbfd93c8f263684232b3b |
Proposed branch: | ~raharper/cloud-init:logging-gmtime |
Merge into: | cloud-init:master |
Diff against target: |
87 lines (+63/-0) 2 files modified
cloudinit/log.py (+5/-0) tests/unittests/test_log.py (+58/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott Moser | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Chad Smith | Approve | ||
Review via email: mp+329122@code.launchpad.net |
Description of the change
Configure logging module to always use UTC time.
Currently the python logging module will default to a local time which may contain an TZ offset in the values it produces, but the logged time format
does not contain the offset. Switching to UTC time for logging produces
consistent values in the cloud-init.log file and avoids issues when the timezone is changed during boot.
LP: #1713158
To post a comment you must log in.
FAILED: Continuous integration, rev:e8c2885ff24 e74af027dc297be d85c1d744c039c /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 149/
https:/
Executed test runs:
SUCCESS: Checkout
FAILED: Unit & Style Tests
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 149/rebuild
https:/