Add a log message after a storage is added

This commit is contained in:
Denis Glazachev 2020-10-22 02:43:02 +04:00
parent 6a57bc8c0b
commit 691b28e98b
2 changed files with 6 additions and 0 deletions

View File

@ -137,6 +137,10 @@ AccessControlManager::AccessControlManager()
AccessControlManager::~AccessControlManager() = default; AccessControlManager::~AccessControlManager() = default;
void AccessControlManager::addStorage(const StoragePtr & new_storage) {
MultipleAccessStorage::addStorage(new_storage);
LOG_DEBUG(getLogger(), "Added storage '{}' of type '{}'", new_storage->getStorageName(), String(new_storage->getStorageType()));
}
void AccessControlManager::setUsersConfig(const Poco::Util::AbstractConfiguration & users_config_) void AccessControlManager::setUsersConfig(const Poco::Util::AbstractConfiguration & users_config_)
{ {

View File

@ -149,6 +149,8 @@ public:
const ExternalAuthenticators & getExternalAuthenticators() const; const ExternalAuthenticators & getExternalAuthenticators() const;
private: private:
void addStorage(const StoragePtr & new_storage);
class ContextAccessCache; class ContextAccessCache;
class CustomSettingsPrefixes; class CustomSettingsPrefixes;