vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 071a3b2a32e1d9cb31b3b2e38442fd33d6512639
parent d348f12a0e7f9a6e4d1193324a0d6446fa943d00
Author: Jeremy Lin <jeremy.lin@gmail.com>
Date:   Thu, 23 Jul 2020 14:19:51 -0700

Log timestamps with milliseconds by default

Diffstat:
M.env.template | 2+-
Msrc/config.rs | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.env.template b/.env.template @@ -46,7 +46,7 @@ ## Timestamp format used in extended logging. ## Format specifiers: https://docs.rs/chrono/latest/chrono/format/strftime -# LOG_TIMESTAMP_FORMAT="%Y-%m-%d %H:%M:%S" +# LOG_TIMESTAMP_FORMAT="%Y-%m-%d %H:%M:%S.%3f" ## Logging to file ## It's recommended to also set 'ROCKET_CLI_COLORS=off' diff --git a/src/config.rs b/src/config.rs @@ -330,7 +330,7 @@ make_config! { /// Enable extended logging extended_logging: bool, false, def, true; /// Log timestamp format - log_timestamp_format: String, true, def, "%Y-%m-%d %H:%M:%S".to_string(); + log_timestamp_format: String, true, def, "%Y-%m-%d %H:%M:%S.%3f".to_string(); /// Enable the log to output to Syslog use_syslog: bool, false, def, false; /// Log file path