Make sure captured events have some form of timestamp.

git-svn-id: http://yate.null.ro/svn/yate/trunk@5567 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2013-07-08 10:55:21 +00:00
parent 74aae464d4
commit 7a41d92af8
1 changed files with 4 additions and 1 deletions

View File

@ -469,7 +469,10 @@ bool EngineEventHandler::received(Message &msg)
else {
// build a full text with timestamp and sender
char tstamp[30];
Debugger::formatTime(tstamp);
Debugger::Formatting fmt = Debugger::getFormatting();
if (Debugger::None == fmt)
fmt = Debugger::Relative;
Debugger::formatTime(tstamp,fmt);
ev = new CapturedEvent(level,tstamp);
*ev << "<" << *type << "> " << *text;
msg.setParam("fulltext",*ev);