[Positioning] Print new created APs when verbose

This commit is contained in:
Matteo Cypriani 2011-06-29 14:53:23 +02:00
parent 37997242c5
commit 68b97451aa
1 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#include "stock.hh"
#include "configuration.hh"
#include "posexcept.hh"
using namespace std ;
@ -179,6 +180,12 @@ const AccessPoint& Stock::find_create_ap(const string &mac)
AccessPoint &ap = aps[mac] ;
ap.set_mac_addr(mac) ;
if (Configuration::is_configured("verbose"))
cerr
<< "New AP « " << mac
<< " » (total: " << nb_aps() << " APs).\n" ;
return ap ;
}