summaryrefslogtreecommitdiff
path: root/TAO/examples/PluggableUDP/DIOP
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/PluggableUDP/DIOP')
-rw-r--r--TAO/examples/PluggableUDP/DIOP/DIOP_Transport.cpp30
1 files changed, 17 insertions, 13 deletions
diff --git a/TAO/examples/PluggableUDP/DIOP/DIOP_Transport.cpp b/TAO/examples/PluggableUDP/DIOP/DIOP_Transport.cpp
index 5b0e362a66e..d8fc10372d0 100644
--- a/TAO/examples/PluggableUDP/DIOP/DIOP_Transport.cpp
+++ b/TAO/examples/PluggableUDP/DIOP/DIOP_Transport.cpp
@@ -188,13 +188,14 @@ TAO_DIOP_Transport::send_i (const ACE_Message_Block *message_block,
iovcnt,
addr);
- /*
- ACE_DEBUG ((LM_DEBUG,
- "TAO_DIOP_Transport::send_i: sent %d bytes to %s:%d\n",
- bytes_transferred,
- addr.get_host_name (),
- addr.get_port_number ()));
- */
+ if (TAO_debug_level > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO_DIOP_Transport::send_i: sent %d bytes to %s:%d\n",
+ bytes_transferred,
+ addr.get_host_name (),
+ addr.get_port_number ()));
+ }
// Errors.
// @@ John Mackenzie. We cannot propogate errors up in DIOP
@@ -230,12 +231,15 @@ TAO_DIOP_Transport::recv_i (char *buf,
len,
from_addr);
- ACE_DEBUG ((LM_DEBUG,
- "TAO_DIOP_Transport::recv_i: received %d bytes from %s:%d %d\n",
- n,
- from_addr.get_host_name (),
- from_addr.get_port_number (),
- errno));
+ if (TAO_debug_level > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO_DIOP_Transport::recv_i: received %d bytes from %s:%d %d\n",
+ n,
+ from_addr.get_host_name (),
+ from_addr.get_port_number (),
+ errno));
+ }
// Remember the from addr to eventually use it as remote
// addr for the reply.