Offers on tracelevels

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

 



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.

-- 
Best regards,
Igor Prokhorov
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;
 }

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

  Powered by Linux