try {
weight = stoi(content);
if(!status) {
- g_log<<Logger::Info<<"LUA record monitoring declaring "<<remstring<<" UP for URL "<<cd.url<<"!"<<" with WEIGHT "<<content<<"!"<<endl;
+ g_log<<Logger::Info<<"Lua record monitoring declaring "<<remstring<<" UP for URL "<<cd.url<<"!"<<" with WEIGHT "<<content<<"!"<<endl;
}
}
catch (const std::exception&) {
if(!status) {
- g_log<<Logger::Info<<"LUA record monitoring declaring "<<remstring<<" UP for URL "<<cd.url<<"!"<<endl;
+ g_log<<Logger::Info<<"Lua record monitoring declaring "<<remstring<<" UP for URL "<<cd.url<<"!"<<endl;
}
}
}
catch(std::exception& ne) {
if(status || first)
- g_log<<Logger::Info<<"LUA record monitoring declaring "<<remstring<<" DOWN for URL "<<cd.url<<", error: "<<ne.what()<<endl;
+ g_log<<Logger::Info<<"Lua record monitoring declaring "<<remstring<<" DOWN for URL "<<cd.url<<", error: "<<ne.what()<<endl;
setWeight(cd, 0);
setDown(cd);
}
extern std::function<std::string(const std::string& ip, int)> g_getGeo;
if(!g_getGeo) {
if(!initialized) {
- g_log<<Logger::Error<<"LUA Record attempted to use GeoIPBackend functionality, but backend not launched"<<endl;
+ g_log<<Logger::Error<<"Lua record attempted to use GeoIPBackend functionality, but backend not launched"<<endl;
initialized=true;
}
return "unknown";
else if(selector=="hashed")
ret.emplace_back(pickHashed<ComboAddress>(bestwho, candidates));
else {
- g_log<<Logger::Warning<<"LUA Record called with unknown selector '"<<selector<<"'"<<endl;
+ g_log<<Logger::Warning<<"Lua record called with unknown selector '"<<selector<<"'"<<endl;
ret.emplace_back(pickRandom<ComboAddress>(candidates));
}
return fmt.str();
}
catch(std::exception& ex) {
- g_log<<Logger::Error<<"LUA Record exception: "<<ex.what()<<endl;
+ g_log<<Logger::Error<<"Lua record exception: "<<ex.what()<<endl;
}
catch(PDNSException& ex) {
- g_log<<Logger::Error<<"LUA Record exception: "<<ex.reason<<endl;
+ g_log<<Logger::Error<<"Lua record exception: "<<ex.reason<<endl;
}
return std::string("unknown");
});
}
}
catch(std::exception& e) {
- g_log<<Logger::Error<<"Failed to load include record for LUArecord "<<rec<<": "<<e.what()<<endl;
+ g_log<<Logger::Error<<"Failed to load include record for Lua record "<<rec<<": "<<e.what()<<endl;
}
});
}
#ifdef HAVE_LUA_RECORDS
if (rr.dr.d_type == QType::LUA && !d_dk.isPresigned(d_sd.qname)) {
if(!doLua) {
- DLOG(g_log<<"Have a wildcard LUA match, but not doing LUA record for this zone"<<endl);
+ DLOG(g_log<<"Have a wildcard Lua match, but not doing LUA record for this zone"<<endl);
continue;
}
- DLOG(g_log<<"Have a wildcard LUA match"<<endl);
+ DLOG(g_log<<"Have a wildcard Lua match"<<endl);
auto rec=getRR<LUARecordContent>(rr.dr);
if (!rec) {