Made -DZ the default log timestamping, added -Dn to disable timestamps.

git-svn-id: http://yate.null.ro/svn/yate/trunk@5912 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2014-09-16 12:37:34 +00:00
parent a2bd1ea54c
commit 9d5ead567d
2 changed files with 8 additions and 1 deletions

View File

@ -128,6 +128,9 @@ Abort if bugs are encountered even during shutdown
.B \-DO
Attempt to debug all object allocations by counting objects per plugin, degrades performance
.TP
.B \-Dn
Do not add timestamps to debugging messages
.TP
.B \-Dt
Add start time relative timestamps to debugging messages
.TP

View File

@ -2107,6 +2107,7 @@ static void usage(bool client, FILE* f)
" o Colorize output using ANSI codes\n"
" s Abort on bugs even during shutdown\n"
" O Attempt to debug object allocations\n"
" n Do not timestamp debugging messages\n"
" t Timestamp debugging messages relative to program start\n"
" e Timestamp debugging messages based on EPOCH (1-1-1970 GMT)\n"
" f Timestamp debugging in GMT format YYYYMMDDhhmmss.uuuuuu\n"
@ -2156,7 +2157,7 @@ int Engine::main(int argc, const char** argv, const char** env, RunMode mode, En
bool supervised = false;
#endif
bool client = (mode == Client);
Debugger::Formatting tstamp = Debugger::None;
Debugger::Formatting tstamp = Debugger::TextLSep;
bool colorize = false;
const char* pidfile = 0;
const char* workdir = 0;
@ -2356,6 +2357,9 @@ int Engine::main(int argc, const char** argv, const char** env, RunMode mode, En
case 'O':
GenObject::setObjCounting(true);
break;
case 'n':
tstamp = Debugger::None;
break;
case 'e':
tstamp = Debugger::Absolute;
break;