diff --git a/owlps-positioning/src/stock.cc b/owlps-positioning/src/stock.cc index ca3239f..e0d8df9 100644 --- a/owlps-positioning/src/stock.cc +++ b/owlps-positioning/src/stock.cc @@ -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 ; }