[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-cd-3-1' - common/Log.cpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Mon Apr 23 09:45:06 UTC 2018


 common/Log.cpp |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 988f538f4a9dafd554f6fe89a4791c7f8e119399
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>

diff --git a/common/Log.cpp b/common/Log.cpp
index 926bc75ad..78802d4c9 100644
--- a/common/Log.cpp
+++ b/common/Log.cpp
@@ -110,11 +110,12 @@ namespace Log
             osTid = Util::getThreadId();
             threadName = Util::getThreadName();
         }
+
         Poco::DateTime time;
-        snprintf(buffer, 1023, "%s-%.05lu %.2u/%.2u %.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.day(), time.month(),
+                    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