Increase Haskell log file resolution
authorIustin Pop <iustin@google.com>
Thu, 17 Jan 2013 11:15:39 +0000 (12:15 +0100)
committerIustin Pop <iustin@google.com>
Mon, 21 Jan 2013 11:57:52 +0000 (12:57 +0100)
commitce81770156f637740744af009de7273a3ff96b7d
tree5c3f6384171a2b97b2f5439a0875de7daeaf09c0
parenta6e054a8b9210d32d8bfd68554b72503d7716a6d
Increase Haskell log file resolution

Currently the Haskell logging goes with the default time formatting,
which lacks sub-second resolution. This is not good, as it's too
coarse.

The patch adds picoseconds to the log; they will contain usually too
many zeroes, but the other option is to use a log format that (for
precisely zero fractional part) omits the separator, so it's not
consistent from line to line, and which also uses a dot as a
separator, different from the Python code.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
src/Ganeti/Logging.hs