Changeset 955

Show
Ignore:
Timestamp:
02/18/07 20:41:19 (2 years ago)
Author:
ahu
Message:

rebase error logging priorities

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pdns/pdns/pdns_recursor.cc

    r944 r955  
    10651065{ 
    10661066  if(g_stats.qcounter && (RC.cacheHits + RC.cacheMisses) && SyncRes::s_queries && SyncRes::s_outqueries) { 
    1067     L<<Logger::Error<<"stats: "<<g_stats.qcounter<<" questions, "<<RC.size()<<" cache entries, "<<SyncRes::s_negcache.size()<<" negative entries, " 
     1067    L<<Logger::Warning<<"stats: "<<g_stats.qcounter<<" questions, "<<RC.size()<<" cache entries, "<<SyncRes::s_negcache.size()<<" negative entries, " 
    10681068     <<(int)((RC.cacheHits*100.0)/(RC.cacheHits+RC.cacheMisses))<<"% cache hits"<<endl; 
    1069     L<<Logger::Error<<"stats: throttle map: "<<SyncRes::s_throttle.size()<<", ns speeds: " 
     1069    L<<Logger::Warning<<"stats: throttle map: "<<SyncRes::s_throttle.size()<<", ns speeds: " 
    10701070     <<SyncRes::s_nsSpeeds.size()<<endl; // ", bytes: "<<RC.bytes()<<endl; 
    1071     L<<Logger::Error<<"stats: outpacket/query ratio "<<(int)(SyncRes::s_outqueries*100.0/SyncRes::s_queries)<<"%"; 
    1072     L<<Logger::Error<<", "<<(int)(SyncRes::s_throttledqueries*100.0/(SyncRes::s_outqueries+SyncRes::s_throttledqueries))<<"% throttled, " 
     1071    L<<Logger::Warning<<"stats: outpacket/query ratio "<<(int)(SyncRes::s_outqueries*100.0/SyncRes::s_queries)<<"%"; 
     1072    L<<Logger::Warning<<", "<<(int)(SyncRes::s_throttledqueries*100.0/(SyncRes::s_outqueries+SyncRes::s_throttledqueries))<<"% throttled, " 
    10731073     <<SyncRes::s_nodelegated<<" no-delegation drops"<<endl; 
    1074     L<<Logger::Error<<"stats: "<<SyncRes::s_tcpoutqueries<<" outgoing tcp connections, "<<MT->numProcesses()<<" queries running, "<<SyncRes::s_outgoingtimeouts<<" outgoing timeouts"<<endl; 
     1074    L<<Logger::Warning<<"stats: "<<SyncRes::s_tcpoutqueries<<" outgoing tcp connections, "<<MT->numProcesses()<<" queries running, "<<SyncRes::s_outgoingtimeouts<<" outgoing timeouts"<<endl; 
    10751075  } 
    10761076  else if(statsWanted)  
    1077     L<<Logger::Error<<"stats: no stats yet!"<<endl; 
     1077    L<<Logger::Warning<<"stats: no stats yet!"<<endl; 
    10781078 
    10791079  statsWanted=false; 
     
    11201120    int res=sr.beginResolve(".", QType(QType::NS), 1, ret); 
    11211121    if(!res) { 
    1122       L<<Logger::Error<<"Refreshed . records"<<endl; 
     1122      L<<Logger::Warning<<"Refreshed . records"<<endl; 
    11231123      last_rootupdate=now.tv_sec; 
    11241124    }