From 0aa919f7f583e2b518dfbe096721db7fb199508f Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Fri, 20 Feb 2009 14:56:34 +0000 Subject: added some log messages --- src/packetSource.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/packetSource.cpp') diff --git a/src/packetSource.cpp b/src/packetSource.cpp index b6eebbe..2541894 100644 --- a/src/packetSource.cpp +++ b/src/packetSource.cpp @@ -33,12 +33,14 @@ #include "datatypes.h" #include "packetSource.h" +#include "log.h" UDPPacketSource::UDPPacketSource(std::string port) : sock_(io_service_) { proto::resolver resolver(io_service_); proto::resolver::query query(port); proto::endpoint e = *resolver.resolve(query); + cLog.msg(Log::PRIO_NOTICE) << "openeing socket: " << e; sock_.open(e.protocol()); sock_.bind(e); } @@ -48,6 +50,7 @@ UDPPacketSource::UDPPacketSource(std::string localaddr, std::string port) : sock proto::resolver resolver(io_service_); proto::resolver::query query(localaddr, port); proto::endpoint e = *resolver.resolve(query); + cLog.msg(Log::PRIO_NOTICE) << "openeing socket: " << e; sock_.open(e.protocol()); sock_.bind(e); } -- cgit v1.2.3