dump.cc (420B)
1 #include "ipstore" 2 3 void IPStore::dump() { 4 if (!config.debug()) 5 return; 6 7 debugmsg("IPStore dump:\n"); 8 for (StoreMap::iterator iter = store.begin(); 9 iter != store.end(); 10 iter++) { 11 Timestamp tm((*iter).second.lastaccess); 12 ostringstream o; 13 o << "Client IP " << inet2string(iter->first) << " on " 14 << tm.desc() << " to back end " << (*iter).second.targetbackend 15 << '\n'; 16 debugmsg(o.str()); 17 } 18 }