Browse Source

[805] Use logging macros

Just consistency and performance.
Michal 'vorner' Vaner 13 years ago
parent
commit
619af407ed
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/lib/asiodns/tcp_server.cc
  2. 1 1
      src/lib/asiodns/udp_server.cc

+ 1 - 1
src/lib/asiodns/tcp_server.cc

@@ -81,7 +81,7 @@ TCPServer::TCPServer(io_service& io_service, int fd, int af,
         isc_throw(InvalidParameter, "Address family must be either AF_INET "
                   "or AF_INET6, not " << af);
     }
-    logger.debug(DBGLVL_TRACE_BASIC, ASIODNS_FD_ADD_TCP).arg(fd);
+    LOG_DEBUG(logger, DBGLVL_TRACE_BASIC, ASIODNS_FD_ADD_TCP).arg(fd);
 
     acceptor_.reset(new tcp::acceptor(io_service));
     try {

+ 1 - 1
src/lib/asiodns/udp_server.cc

@@ -85,7 +85,7 @@ struct UDPServer::Data {
             isc_throw(InvalidParameter, "Address family must be either AF_INET "
                       "or AF_INET6, not " << af);
         }
-        logger.debug(DBGLVL_TRACE_BASIC, ASIODNS_FD_ADD_UDP).arg(fd);
+        LOG_DEBUG(logger, DBGLVL_TRACE_BASIC, ASIODNS_FD_ADD_UDP).arg(fd);
         // We must use different instantiations for v4 and v6;
         // otherwise ASIO will bind to both
         udp proto = af == AF_INET6 ? udp::v6() : udp::v4();