Fixing discovery.

This commit is contained in:
stephb9959
2021-09-29 09:34:30 -07:00
parent e8c2d3ad37
commit 29c1e3ff5b
3 changed files with 3 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ namespace OpenWifi {
void ImportTree(const Poco::JSON::Object::Ptr &Ptr, const std::string & Node = RootUUID_ );
void ImportVenues(const Poco::JSON::Object::Ptr &Ptr, const std::string & Node = RootUUID_ );
bool CreateShortCut( ProvObjects::Entity & E);
bool GetByIP(const std::string &IP, std::string & uuid);
private:
bool RootExists_=false;
};

View File

@@ -78,7 +78,7 @@ namespace OpenWifi {
Logger().information(Poco::format("Adding %s to inventory.",SerialNumber));
return true;
} else {
std::cout << "Could not add " << SerialNumber << " to DB." << std::endl;
Logger().information(Poco::format("Could not add %s to inventory.",SerialNumber));
}
}
return false;

View File

@@ -39,6 +39,7 @@ namespace OpenWifi {
public:
VenueDB( ORM::DBType T, Poco::Data::SessionPool & P, Poco::Logger &L);
bool CreateShortCut(ProvObjects::Venue &V);
bool GetByIP(const std::string &IP, std::string & uuid);
private:
};
}