Mercurial > hg > orthanc-python
diff Sources/RestCallbacks.cpp @ 171:c8de83fe7faa
removed deprecation warnings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 Jun 2024 15:52:51 +0200 |
parents | 6fada29b6759 |
children | 3757a7b9e6f1 |
line wrap: on
line diff
--- a/Sources/RestCallbacks.cpp Thu Jun 27 14:26:59 2024 +0200 +++ b/Sources/RestCallbacks.cpp Thu Jun 27 15:52:51 2024 +0200 @@ -185,7 +185,7 @@ std::string traceback; if (lock.HasErrorOccurred(traceback)) { - OrthancPlugins::LogError("Error in the REST callback, traceback:\n" + traceback); + ORTHANC_PLUGINS_LOG_ERROR("Error in the REST callback, traceback:\n" + traceback); ORTHANC_PLUGINS_THROW_EXCEPTION(Plugin); } @@ -194,7 +194,7 @@ } // Should never happen - OrthancPlugins::LogError("Unable to find the Python handler for URI: " + std::string(uri)); + ORTHANC_PLUGINS_LOG_ERROR("Unable to find the Python handler for URI: " + std::string(uri)); ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); } @@ -216,7 +216,7 @@ return NULL; } - OrthancPlugins::LogInfo("Registering a Python REST callback on URI: " + std::string(uri)); + ORTHANC_PLUGINS_LOG_INFO("Registering a Python REST callback on URI: " + std::string(uri)); OrthancPlugins::RegisterRestCallback<RestCallbackHandler>(uri, true /* thread safe */); restCallbacks_.push_back(new RestCallback(uri, callback));