Mercurial > hg > waaad
changeset 290:5ed9c73c31cd
Fixed debug levels, trace all incoming and outgoing messages with level of FULL
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 22 Dec 2008 12:43:40 +0900 |
parents | 6537213b55b5 |
children | af7aca7ddcf7 |
files | waaad/peer-out.c waaad/peer-psm.c |
diffstat | 2 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/waaad/peer-out.c Mon Dec 22 12:29:49 2008 +0900 +++ b/waaad/peer-out.c Mon Dec 22 12:43:40 2008 +0900 @@ -71,6 +71,9 @@ { unsigned char *buf = NULL; size_t len; + + TRACE_DEBUG(FULL, "Sending message to peer '%s':", peer->p_diamid); + msg_dump_walk(FULL, msg); /* Render the message as a buffer */ CHECK_FCT_DO( msg_bufferize ( msg, &buf, &len ),
--- a/waaad/peer-psm.c Mon Dec 22 12:29:49 2008 +0900 +++ b/waaad/peer-psm.c Mon Dec 22 12:43:40 2008 +0900 @@ -363,8 +363,7 @@ CHECK_FCT_DO( msg_rescode_set( cea, "DIAMETER_SUCCESS", NULL, NULL, 0 ), goto error ); /* Send the CEA */ - TRACE_DEBUG(INFO, "Sending CEA to '%s', status success", peer->p_diamid); - msg_dump_walk(FULL, cea); + TRACE_DEBUG(FULL, "Sending CEA to '%s', status success", peer->p_diamid); CHECK_FCT_DO( _peer_out_sendmsg( peer, cea ), goto error ); /* Free the CEA */ @@ -587,6 +586,9 @@ CHECK_FCT_DO( meq_tryget(peer->p_in_q, &msg), return 1 ); pthread_cleanup_push( _cleanup_msg, msg ); + TRACE_DEBUG(FULL, "Received this message from '%s':", peer->p_diamid); + msg_dump_walk(FULL, msg); + /* If the application id is not 0, or the message is proxyable, directly requeue in global incoming queue. */ CHECK_FCT_DO( msg_data( msg, &mdata ), goto error ); if ((mdata->msg_flags & CMD_FLAG_PROXIABLE) || (mdata->msg_appl != 0)) { @@ -599,9 +601,6 @@ goto error; } ); - TRACE_DEBUG(INFO, "Queueing the following message (%p) in g_meq_incoming:", msg); - msg_dump_walk(INFO, msg); - /* Requeue in global queue */ CHECK_FCT_DO( meq_post(g_meq_incoming, msg), goto error );