diff options
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | zenserver/diag/logging.cpp | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e21096ed..66cae5602 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Improvement: Disk write pressure in GC log and cleaned up clutter in GC logging. - Bugfix: Always store records or oplog entries before storing attachments to avoid GC finding unreferenced chunks i CidStore - Changed: Reduced GC `INFO` spam by converting to `DEBUG` log messages +- Changed: Use Iso8601 format for logging start and end message ## 0.1.9 - Feature: Adds two command to Zen command tool to export/import project store oplogs with attachments diff --git a/zenserver/diag/logging.cpp b/zenserver/diag/logging.cpp index dd9e3e806..1a8b427ca 100644 --- a/zenserver/diag/logging.cpp +++ b/zenserver/diag/logging.cpp @@ -28,6 +28,7 @@ ZEN_THIRD_PARTY_INCLUDES_START #endif ZEN_THIRD_PARTY_INCLUDES_END +#include <zencore/compactbinary.h> #include <zencore/filesystem.h> #include <zencore/string.h> @@ -505,13 +506,13 @@ InitializeLogging(const ZenServerOptions& GlobalOptions) { FileSink->set_pattern("[%C-%m-%d.%e %T] [%n] [%l] %v"); } - DefaultLogger.info("log starting at {:%FT%T%z}", std::chrono::system_clock::now()); + DefaultLogger.info("log starting at {}", zen::DateTime::Now().ToIso8601()); } void ShutdownLogging() { auto& DefaultLogger = zen::logging::Default(); - DefaultLogger.info("log ending at {:%FT%T%z}", std::chrono::system_clock::now()); + DefaultLogger.info("log ending at {}", zen::DateTime::Now().ToIso8601()); zen::logging::ShutdownLogging(); } |