[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - common/Log.cpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Mon Apr 23 09:54:26 UTC 2018
common/Log.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit d50850337b1cad5ce93678079085a97316f1f48e
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Thu Apr 19 08:35:23 2018 -0400
wsd: log proper ISO date in YYYY-MM-DD format
Change-Id: I8851c044bad43a03a99f7471be97ea77c58f7be8
Reviewed-on: https://gerrit.libreoffice.org/53266
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/53316
diff --git a/common/Log.cpp b/common/Log.cpp
index 94d2fd13e..78802d4c9 100644
--- a/common/Log.cpp
+++ b/common/Log.cpp
@@ -112,9 +112,10 @@ namespace Log
}
Poco::DateTime time;
- snprintf(buffer, 1023, "%s-%.05lu %.2u:%.2u:%.2u.%.6u [ %s ] %s ",
+ snprintf(buffer, 1023, "%s-%.05lu %.4u-%.2u-%.2u %.2u:%.2u:%.2u.%.6u [ %s ] %s ",
(Source.inited ? Source.id.c_str() : "<shutdown>"),
osTid,
+ time.year(), time.month(), time.day(),
time.hour(), time.minute(), time.second(),
time.millisecond() * 1000 + time.microsecond(),
threadName, level);
More information about the Libreoffice-commits
mailing list