examples/tcp-small-transfer.cc
changeset 2227 48e8a213a27b
parent 2224 6f97d21a99c2
child 2255 ac534291636f
--- a/examples/tcp-small-transfer.cc	Fri Jan 25 15:41:47 2008 -0800
+++ b/examples/tcp-small-transfer.cc	Sat Jan 26 06:01:45 2008 -0800
@@ -70,6 +70,9 @@
 ApplicationTraceSink (const TraceContext &context, Ptr<const Packet> packet,
   const Address &addr)
 {
+// g_log is not declared in optimized builds
+// should convert this to use of some other flag than the logging system
+#ifdef NS3_LOG_ENABLE
   if (!g_log.IsNoneEnabled ()) {
     if (InetSocketAddress::IsMatchingType (addr) )
       {
@@ -89,6 +92,7 @@
         std::cout << std::endl << std::endl;
     }
   }
+#endif
 }
 
 void CloseConnection (Ptr<Socket> localSocket)