[Positioning] Print new created APs when verbose
This commit is contained in:
parent
37997242c5
commit
68b97451aa
|
@ -1,4 +1,5 @@
|
||||||
#include "stock.hh"
|
#include "stock.hh"
|
||||||
|
#include "configuration.hh"
|
||||||
#include "posexcept.hh"
|
#include "posexcept.hh"
|
||||||
|
|
||||||
using namespace std ;
|
using namespace std ;
|
||||||
|
@ -179,6 +180,12 @@ const AccessPoint& Stock::find_create_ap(const string &mac)
|
||||||
|
|
||||||
AccessPoint &ap = aps[mac] ;
|
AccessPoint &ap = aps[mac] ;
|
||||||
ap.set_mac_addr(mac) ;
|
ap.set_mac_addr(mac) ;
|
||||||
|
|
||||||
|
if (Configuration::is_configured("verbose"))
|
||||||
|
cerr
|
||||||
|
<< "New AP « " << mac
|
||||||
|
<< " » (total: " << nb_aps() << " APs).\n" ;
|
||||||
|
|
||||||
return ap ;
|
return ap ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue