diff --git a/src/ActionLinkManager.cpp b/src/ActionLinkManager.cpp index 6466f1c..7d2fe9c 100644 --- a/src/ActionLinkManager.cpp +++ b/src/ActionLinkManager.cpp @@ -34,7 +34,7 @@ std::cout << __func__ << ":" << __LINE__ << std::endl; std::vector Links; { std::lock_guard G(Mutex_); - Storage()->GetActions(Links); + Storage().GetActions(Links); } std::cout << __func__ << ":" << __LINE__ << std::endl; diff --git a/src/storage/storage_actionLinks.cpp b/src/storage/storage_actionLinks.cpp index b7e5e3b0..f3c8a47 100644 --- a/src/storage/storage_actionLinks.cpp +++ b/src/storage/storage_actionLinks.cpp @@ -46,15 +46,23 @@ namespace OpenWifi { bool Storage::CreateAction( SecurityObjects::ActionLink & A) { try { + std::cout << __func__ << ":" << __LINE__ << std::endl; Poco::Data::Session Sess = Pool_->get(); + std::cout << __func__ << ":" << __LINE__ << std::endl; Poco::Data::Statement Insert(Sess); + std::cout << __func__ << ":" << __LINE__ << std::endl; std::string St2{ "INSERT INTO ActionLinks (" + AllActionLinksFieldsForSelect + ") VALUES(" + AllActionLinksValuesForSelect + ")"}; + std::cout << __func__ << ":" << __LINE__ << std::endl; ActionLinkRecord AR; + std::cout << __func__ << ":" << __LINE__ << std::endl; Convert(A, AR); + std::cout << __func__ << ":" << __LINE__ << std::endl; Insert << ConvertParams(St2), Poco::Data::Keywords::use(AR); + std::cout << __func__ << ":" << __LINE__ << std::endl; Insert.execute(); + std::cout << __func__ << ":" << __LINE__ << std::endl; return true; } catch (const Poco::Exception &E) { Logger_.log(E);