Re: Offers on tracelevels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 31 August 2004 15:01, Kompnet wrote:
> Hi, all!
> Let's change tracelevels a little:
> let's move сontents of radiusacct_PDU and messages yasocket.cxx(699) to
> 7-th tracelevel.
> It can help to see RTP/RTCP stream without excessive growth of logfile.

Hey, guys!
Really the opportunity to reduce in 1.5 times the volume of logfile at 6-th 
traicelevel by changing of several lines of a code without loss of 
functionality is absolutely uninteresting to anybody?

I am using this patch since March 2004, and it have bothered to me to correct 
it manually each time after changing of radproto.cxx and yasocket.cxx.

diff -uNr ./openh323gk/radproto.cxx ./openh323gk.7th_level/radproto.cxx
--- ./openh323gk/radproto.cxx	Mon Aug 16 06:03:57 2004
+++ ./openh323gk.7th_level/radproto.cxx	Tue Aug 31 14:54:49 2004
@@ -2218,8 +2218,14 @@
 		ostream& strm = PTrace::Begin(3, __FILE__, __LINE__);
 		strm << "RADIUS\tSending PDU to RADIUS server "
 			<< server->m_serverAddress << " (" << serverAddress << ':' << serverPort
-			<< ')' << " from " << (*socket) << ", PDU: ";
-		if (PTrace::CanTrace(5))
+			<< ')' << " from "
+                                       <<(*socket);
+                               PTrace::End(strm);
+                       }
+                       if( PTrace::CanTrace(7) ) {
+                          ostream& strm = PTrace::Begin(7,__FILE__,__LINE__);
+                               strm<<", PDU: ";
+                               if( PTrace::CanTrace(7) )
 			strm << *clonedRequestPDU;
 		else
 			strm << PMAP_CODE_TO_NAME(clonedRequestPDU->GetCode()) << ", id "
diff -uNr ./openh323gk/yasocket.cxx ./openh323gk.7th_level/yasocket.cxx
--- ./openh323gk/yasocket.cxx	Mon Aug 16 06:03:57 2004
+++ ./openh323gk.7th_level/yasocket.cxx	Tue Aug 31 14:54:49 2004
@@ -696,7 +696,7 @@

 #if PTRACING
 	PString msg(PString::Printf, " %u sockets selected from %u, total %u/%u", 
slist.GetSize(), ss, m_socksize, m_rmsize);
-	PTRACE(5, GetName() << msg);
+	PTRACE(7, GetName() << msg);
 #endif
 	return true;
 }

Regards!
Igor Prokhorov.


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&opМk

_______________________________________________________

List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id…49
Homepage: http://www.gnugk.org/


[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux