pub enum LogZone {
Utc,
Local,
}Expand description
The zone that renders the timestamp at the head of a log line.
The two variants serve two different audiences, and that is deliberate - not a divergence waiting to be unified:
- The server logs in
LogZone::Utc: server.log is read next to backend.log and security.log, which Django writes in UTC (USE_TZ), and a local-zone stamp skews the incident timeline across the files by the zone offset - three hours on the prod MSK hosts (CLOUDPUB-1474). - The client logs in
LogZone::Local: its log is read by one person on their own machine, correlating entries with what they just did by hand. The stamp format carries no offset of its own, so a UTC stamp would show that person a shifted time with no sign it is UTC - it would read as broken clocks, not as UTC. Showing the zone in the format is the prerequisite for ever moving the client to UTC, and the format is deliberately outside this ticket’s scope.
Variants§
Auto Trait Implementations§
impl Freeze for LogZone
impl RefUnwindSafe for LogZone
impl Send for LogZone
impl Sync for LogZone
impl Unpin for LogZone
impl UnsafeUnpin for LogZone
impl UnwindSafe for LogZone
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more