changeset 266:f404b5f84d7b

Dump complete received messages at FULL+1 level
author Sebastien Decugis <sdecugis@nict.go.jp>
date Mon, 19 Apr 2010 12:12:11 +0900
parents 9e10e3d72da3
children 51d224448024
files freeDiameter/p_psm.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/freeDiameter/p_psm.c	Mon Apr 19 12:08:45 2010 +0900
+++ b/freeDiameter/p_psm.c	Mon Apr 19 12:12:11 2010 +0900
@@ -390,7 +390,12 @@
 			} );
 		
 		TRACE_DEBUG(FULL, "Received a message (%zdb) from '%s'", ev_sz, peer->p_hdr.info.pi_diamid);
-		fd_msg_dump_walk(FULL, msg);
+		if (TRACE_BOOL(FULL+1)) {
+			CHECK_FCT_DO( fd_msg_parse_dict( msg, fd_g_config->cnf_dict, NULL ), );
+			fd_msg_dump_walk(FULL, msg);
+		} else {
+			fd_msg_dump_one(FULL, msg);
+		}
 	
 		/* Extract the header */
 		CHECK_FCT_DO( fd_msg_hdr(msg, &hdr), goto psm_end );
"Welcome to our mercurial repository"