Mercurial > hg > orthanc-databases
changeset 198:7335efde0d23
simplification
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 18 Mar 2021 12:24:28 +0100 |
parents | a57ca58c538a |
children | 8cae98f73d53 |
files | Framework/Plugins/OrthancCppDatabasePlugin.h |
diffstat | 1 files changed, 3 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Plugins/OrthancCppDatabasePlugin.h Thu Jan 28 16:54:51 2021 +0100 +++ b/Framework/Plugins/OrthancCppDatabasePlugin.h Thu Mar 18 12:24:28 2021 +0100 @@ -55,7 +55,7 @@ } \ catch (...) \ { \ - backend->GetOutput().LogError("Native exception"); \ + OrthancPluginLogError(backend->GetOutput().GetContext(), "Native exception"); \ return OrthancPluginErrorCode_DatabasePlugin; \ } @@ -110,21 +110,6 @@ return context_; } - void LogError(const std::string& message) - { - OrthancPluginLogError(context_, message.c_str()); - } - - void LogWarning(const std::string& message) - { - OrthancPluginLogWarning(context_, message.c_str()); - } - - void LogInfo(const std::string& message) - { - OrthancPluginLogInfo(context_, message.c_str()); - } - void SignalDeletedAttachment(const std::string& uuid, int32_t contentType, uint64_t uncompressedSize, @@ -577,7 +562,8 @@ static void LogError(IDatabaseBackend* backend, const std::runtime_error& e) { - backend->GetOutput().LogError("Exception in database back-end: " + std::string(e.what())); + const std::string message = "Exception in database back-end: " + std::string(e.what()); + OrthancPluginLogError(backend->GetOutput().GetContext(), message.c_str()); }