Skip to content

Commit

Permalink
ModuleManagement: Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Royna2544 committed Nov 14, 2024
1 parent 1b80a10 commit 50716f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api/components/ModuleManagement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,8 @@ TgBotApiImpl::ModulesManagement::ModulesManagement(
: _api(api), commandAsync(2) {
loadFrom(modules_dir);
}


TgBotApiImpl::ModulesManagement::~ModulesManagement() {
LOG(INFO) << "Unloading total " << _handles.size() << " modules";
}
1 change: 1 addition & 0 deletions src/include/api/components/ModuleManagement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ class TgBotApiImpl::ModulesManagement {
bool loadFrom(const std::filesystem::path& directory);

explicit ModulesManagement(TgBotApiImpl::Ptr api, const std::filesystem::path& modules_dir);
~ModulesManagement();
};

0 comments on commit 50716f2

Please sign in to comment.