some DBG/INFO logging on startup

sayer/1.4-spce2.6
Stefan Sayer 16 years ago
parent ca22b26c53
commit 604cb3e10c

@ -168,11 +168,12 @@ int AmPlugIn::load(const string& directory, const string& plugins)
int err=0;
if (!plugins.length()) {
DBG("AmPlugIn: loading modules in directory '%s':\n", directory.c_str());
INFO("AmPlugIn: loading modules in directory '%s':\n", directory.c_str());
DIR* dir = opendir(directory.c_str());
if (!dir){
ERROR("while opening plug-in directory (%s): %s\n", directory.c_str(), strerror(errno));
ERROR("while opening plug-in directory (%s): %s\n",
directory.c_str(), strerror(errno));
return -1;
}
@ -209,7 +210,7 @@ int AmPlugIn::load(const string& directory, const string& plugins)
closedir(dir);
}
else {
DBG("AmPlugIn: loading modules '%s':\n", plugins.c_str());
INFO("AmPlugIn: loading modules: '%s'\n", plugins.c_str());
vector<string> plugins_list = explode(plugins, ";");
for (vector<string>::iterator it = plugins_list.begin();

@ -179,9 +179,8 @@ int StatsUDPServer::init()
//sa.sin_port = htons(udp_port);
return -1;
}
else{
DBG("socket bound at port %i\n",udp_port);
} else {
INFO("stats server listening on %s:%i\n",udp_addr.c_str(), udp_port);
//socket_bound = true;
}
//}

@ -182,7 +182,8 @@ void udp_trsp::run()
return;
}
DBG("Started UDP server listening on %s:%i\n",sock->get_ip(),sock->get_port());
INFO("Started SIP server UDP transport on %s:%i\n",
sock->get_ip(),sock->get_port());
while(true){

Loading…
Cancel
Save