removed brackets around timestamp in log
authorVictor Kirhenshtein <victor@netxms.org>
Fri, 13 Oct 2017 12:49:36 +0000 (15:49 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Fri, 13 Oct 2017 12:49:36 +0000 (15:49 +0300)
src/libnetxms/log.cpp

index 1ab1aab..31a9e65 100644 (file)
@@ -152,8 +152,8 @@ static TCHAR *FormatLogTimestamp(TCHAR *buffer)
 #else
        struct tm *loc = localtime(&t);
 #endif
-       _tcsftime(buffer, 32, _T("[%Y.%m.%d %H:%M:%S"), loc);
-       _sntprintf(&buffer[20], 8, _T(".%03d]"), (int)(now % 1000));
+       _tcsftime(buffer, 32, _T("%Y.%m.%d %H:%M:%S"), loc);
+       _sntprintf(&buffer[19], 8, _T(".%03d"), (int)(now % 1000));
        return buffer;
 }