[Opalvoip-svn] SF.net SVN: opalvoip:[24185] ptlib/trunk/src/ptlib/common/syslog.cxx
Brought to you by:
csoutheren,
rjongbloed
From: <rjo...@us...> - 2010-04-06 07:22:17
|
Revision: 24185 http://opalvoip.svn.sourceforge.net/opalvoip/?rev=24185&view=rev Author: rjongbloed Date: 2010-04-06 07:22:12 +0000 (Tue, 06 Apr 2010) Log Message: ----------- Harmonised syslog and trace log levels. Modified Paths: -------------- ptlib/trunk/src/ptlib/common/syslog.cxx Modified: ptlib/trunk/src/ptlib/common/syslog.cxx =================================================================== --- ptlib/trunk/src/ptlib/common/syslog.cxx 2010-04-06 06:50:26 UTC (rev 24184) +++ ptlib/trunk/src/ptlib/common/syslog.cxx 2010-04-06 07:22:12 UTC (rev 24185) @@ -147,7 +147,7 @@ // Trace system sets the ios stream width as the last thing it does before // doing a flush, which gets us here. SO now we can get a PTRACE looking // exactly like a PSYSTEMLOG of appropriate level. - unsigned traceLevel = (int)m_log->width() -1 + PSystemLog::Warning; + unsigned traceLevel = (int)m_log->width(); m_log->width(0); if (traceLevel >= PSystemLog::NumLogLevels) traceLevel = PSystemLog::NumLogLevels-1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |