diff options
| author | 2025-04-06 16:08:21 +0100 | |
|---|---|---|
| committer | 2025-04-06 17:17:30 +0100 | |
| commit | ebb0ff04e5a88c6cc779ef211365932c04ffde0a (patch) | |
| tree | e028f0c7ab60802dee641224aa137a62f71d189d /modules/hash_pbkdf2.cpp | |
| parent | Bump the ssl_gnutls and ssl_openssl deps in configure. (diff) | |
Add more debug logging to hash_pbkdf2.
Diffstat (limited to 'modules/hash_pbkdf2.cpp')
| -rw-r--r-- | modules/hash_pbkdf2.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/hash_pbkdf2.cpp b/modules/hash_pbkdf2.cpp index 11b55aa4b..1b01f96a3 100644 --- a/modules/hash_pbkdf2.cpp +++ b/modules/hash_pbkdf2.cpp @@ -250,6 +250,8 @@ public: auto* algo = new PBKDF2Provider(this, hp->GetAlgorithm()); Configure(algo); + ServerInstance->Logs.Debug("HASH", "The {} algorithm was added by {}, also adding {}", + hp->GetAlgorithm(), hp->creator->ModuleFile, algo->GetAlgorithm()); try { @@ -261,7 +263,7 @@ public: else { ServerInstance->Logs.Debug("HASH", "The {} algorithm lacks runtime checks, unable to verify integrity.", - hp->GetAlgorithm()); + algo->GetAlgorithm()); } } catch (const ModuleException& err) @@ -280,9 +282,12 @@ public: if (!service.name.starts_with("hash/")) return; // Not a hash provider. - auto it = algos.find(static_cast<Hash::Provider&>(service).GetAlgorithm()); + const auto& hp = static_cast<Hash::Provider&>(service); + auto it = algos.find(hp.GetAlgorithm()); if (it != algos.end()) { + ServerInstance->Logs.Debug("HASH", "The {} algorithm was deleted by {}, also deleting {}", + hp.GetAlgorithm(), hp.creator->ModuleFile, it->second->GetAlgorithm()); delete it->second; algos.erase(it); } |
