An unused relict.
lua_pushinteger(lua, Logger::All);
lua_setglobal(lua, "log_all");
- lua_pushinteger(lua, Logger::NTLog);
- lua_setglobal(lua, "log_ntlog");
-
lua_pushinteger(lua, Logger::Alert);
lua_setglobal(lua, "log_alert");
Logger(const string &, int facility=LOG_DAEMON); //!< pass the identification you wish to appear in the log
//! The urgency of a log message
- enum Urgency {All=32767,NTLog=12345,Alert=LOG_ALERT, Critical=LOG_CRIT, Error=LOG_ERR, Warning=LOG_WARNING,
- Notice=LOG_NOTICE,Info=LOG_INFO, Debug=LOG_DEBUG, None=-1};
+ enum Urgency {All=32767,Alert=LOG_ALERT, Critical=LOG_CRIT, Error=LOG_ERR, Warning=LOG_WARNING,
+ Notice=LOG_NOTICE,Info=LOG_INFO, Debug=LOG_DEBUG, None=-1};
/** Log a message.
\param msg Message you wish to log
// this function takes the global lua_state from the PowerDNSLua constructor and populates it with the syslog enums values
lua_pushnumber(lua, Logger::All);
lua_setfield(lua, -2, "All");
- lua_pushnumber(lua, Logger::NTLog);
- lua_setfield(lua, -2, "NTLog");
lua_pushnumber(lua, Logger::Alert);
lua_setfield(lua, -2, "Alert");
lua_pushnumber(lua, Logger::Critical);
}
}
else
- L<<Logger::Error<<Logger::NTLog<<"Notification for "<<domain<<" to "<<ip<<" failed after retries"<<endl;
+ L<<Logger::Error<<"Notification for "<<domain<<" to "<<ip<<" failed after retries"<<endl;
}
return d_nq.earliest();
s_P=new PacketHandler;
}
catch(PDNSException &ae) {
- L<<Logger::Error<<Logger::NTLog<<"TCP server is unable to launch backends - will try again when questions come in"<<endl;
L<<Logger::Error<<"TCP server is unable to launch backends - will try again when questions come in: "<<ae.reason<<endl;
}
pthread_create(&d_tid, 0, launcher, static_cast<void *>(this));
L<<Logger::Error<<"TCP question accept error: "<<strerror(errno)<<endl;
if(errno==EMFILE) {
- L<<Logger::Error<<Logger::NTLog<<"TCP handler out of filedescriptors, exiting, won't recover from this"<<endl;
+ L<<Logger::Error<<"TCP handler out of filedescriptors, exiting, won't recover from this"<<endl;
exit(1);
}
}
int room;
d_connectionroom_sem->getValue( &room);
if(room<1)
- L<<Logger::Warning<<Logger::NTLog<<"Limit of simultaneous TCP connections reached - raise max-tcp-connections"<<endl;
+ L<<Logger::Warning<<"Limit of simultaneous TCP connections reached - raise max-tcp-connections"<<endl;
if(pthread_create(&tid, 0, &doConnection, reinterpret_cast<void*>(fd))) {
L<<Logger::Error<<"Error creating thread: "<<stringerror()<<endl;
d_ancount=0;
if(!backends.size()) {
- L<<Logger::Error<<Logger::NTLog<<"No database backends available - unable to answer questions."<<endl;
- stale=true; // please recycle us!
+ L<<Logger::Error<<"No database backends available - unable to answer questions."<<endl;
+ stale=true; // please recycle us!
throw PDNSException("We are stale, please recycle");
}
else {