From eebe543d68e43e1bd22fabd1cf1947b784176e50 Mon Sep 17 00:00:00 2001 From: Shamser Ahmed Date: Tue, 24 Sep 2024 16:39:41 +0100 Subject: [PATCH] Changes following review Signed-off-by: Shamser Ahmed --- dali/base/sysinfologger.cpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/dali/base/sysinfologger.cpp b/dali/base/sysinfologger.cpp index bbb1107a985..e0245fcf171 100644 --- a/dali/base/sysinfologger.cpp +++ b/dali/base/sysinfologger.cpp @@ -190,11 +190,7 @@ class CSysInfoLoggerMsgFilter : public CSimpleInterfaceOf endYear) || (startMonth && (startYear == endYear && startMonth > endMonth)) + || (startDay && (startYear == endYear && startMonth == endMonth && startDay > endDay)) ) + throw makeStringExceptionV(-1, "ISysInfoLoggerMsgFilter: invalid date range: %04u-%02u-%02u to %04u-%02u-%02u", startYear, startMonth, startDay, endYear, endMonth, endDay); matchEndYear = endYear; matchEndMonth = endMonth; matchEndDay = endDay; @@ -362,8 +367,8 @@ class CSysInfoLoggerMsgFilter : public CSimpleInterfaceOf