Update from openark/golib to support TZ with logging#1017
Conversation
shlomi-noach
left a comment
There was a problem hiding this comment.
Hey @jfudally! Please note https://github.com/github/orchestrator/blob/master/vendor/github.com/openark/golib/log/log.go exists, and so you'd like to merge your log.go changes into that file instead of creating a new log.go file in a different path.
|
@shlomi-noach Ah my bad I missed a directory. Fixed now. |
|
@jfudally in our testing cluster, before deploying this, our logs show: immediately after deploying: Notice the 8-hour jump from before/after. Before==PST, after==UTC. On our testing cluster: should this happen? |
…-timezone-support
…rator into jfudally-timezone-support
|
@shlomi-noach
Also, what's the best way to run a snapshot to test the logging that I updated? |
…-timezone-support
…rator into jfudally-timezone-support
shlomi-noach
left a comment
There was a problem hiding this comment.
assuming testing works - please merge!
|
Raft snapshot logging looks good: And the integrity of the snapshot is unaffected: |
This PR allows setting the timezone via
TZenvironment variable for localizing logging timestamps:This PR also removes the inconsistent use of the standard
logpackage ingo/raft/file_snapshot.goin favor of theopenark/golib/logpackage used by the rest of the application.gofmt(please avoidgoimports)./build.shgo test ./go/...Closes #1004