diff options
author | Phil Mesnier <mesnier_p@ociweb.com> | 2011-11-07 22:08:34 +0000 |
---|---|---|
committer | Phil Mesnier <mesnier_p@ociweb.com> | 2011-11-07 22:08:34 +0000 |
commit | 92c2260131bddc28c0ac42cd756da8e285429394 (patch) | |
tree | 8e97a0cd6cc89c5c60d77ec5cd1ce8a09d669127 /TAO/utils/logWalker/Invocation.cpp | |
parent | 565797f923609c8d19634b31347838032b7a76b1 (diff) | |
download | ATCD-92c2260131bddc28c0ac42cd756da8e285429394.tar.gz |
Mon Nov 7 22:07:18 UTC 2011 Phil Mesnier <mesnier_p@ociweb.com>
* utils/logWalker/HostProcess.h:
* utils/logWalker/HostProcess.cpp:
* utils/logWalker/Invocation.cpp:
* utils/logWalker/Log.h:
* utils/logWalker/Log.cpp:
* utils/logWalker/PeerProcess.cpp:
* utils/logWalker/Session.h:
* utils/logWalker/Session.cpp:
* utils/logWalker/logWalker.cpp:
Added basic support for tracking SSLIOP connections. Fixed some
memory leak issues reported by valgrind. Added a new date format
selector to accommodate two different time/date formats used by
-ORBVerboseLogging 1.
Diffstat (limited to 'TAO/utils/logWalker/Invocation.cpp')
-rw-r--r-- | TAO/utils/logWalker/Invocation.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/TAO/utils/logWalker/Invocation.cpp b/TAO/utils/logWalker/Invocation.cpp index fd357bf9d0e..7e8dc980154 100644 --- a/TAO/utils/logWalker/Invocation.cpp +++ b/TAO/utils/logWalker/Invocation.cpp @@ -21,6 +21,8 @@ static const char *size_leadin = 0; static size_t leadin_len = 0; static const size_t giop_header_len = 12; +static const int date_format = 2; + // GIOP 1.2 header: 12 bytes // Magic: 4 // ver: 2 @@ -138,6 +140,12 @@ Invocation::GIOP_Buffer::GIOP_Buffer(const char *text, ACE_OS::strncpy(timebuf, text, (time_tok - text)); timebuf[time_tok - text] = 0; char *hms = ACE_OS::strchr (timebuf,' '); + if (Session::date_format() == 2) // MMM DD hh:mm:ss.msec YYYY + { + if (hms != 0) + hms = ACE_OS::strchr (hms+1,' '); + } + if (hms != 0) { int hr, min, sec, msec; |