diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-04-19 08:35:23 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-05-22 16:19:45 +0200 |
commit | bc9ccf834e3c68dd54d1723856993395b21c02bf (patch) | |
tree | fb64952e3ac9dc41813209af9dd714b8da6d34f0 | |
parent | 19dd3f8d17fbfa7cb95ac879ebecc3e1b6d8a585 (diff) |
[cd] wsd: log proper ISO date in YYYY-MM-DD formatcd-3.2.2-1
Change-Id: I8851c044bad43a03a99f7471be97ea77c58f7be8
Reviewed-on: https://gerrit.libreoffice.org/53266
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
-rw-r--r-- | common/Log.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |