( )⚙ D12005 blackbox: add milliseconds to blackbox logs by default

This is an archive of the discontinued Mercurial Phabricator instance.

blackbox: add milliseconds to blackbox logs by default
ClosedPublic

Authored by valentin.gatienbaron on Jan 18 2022, 12:45 AM.

Details

Summary

The current second granularity is often not specific enough to
determine whether an hg command is happening before or after some
other event.

Given that starting a process takes on the order of 1ms (well, for
native processes. It's quite a bit more for python processes),
microseconds seems like unnecessary noise.

This also lines up behavior with the rust version, where we already
switched to millisecond precision.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.