Mercurial > hg > orthanc-python
diff Sources/StorageCommitmentScpCallback.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 | b124c74e6968 |
line wrap: on
line diff
--- a/Sources/StorageCommitmentScpCallback.cpp Thu Jun 27 14:26:59 2024 +0200 +++ b/Sources/StorageCommitmentScpCallback.cpp Thu Jun 27 15:52:51 2024 +0200 @@ -84,15 +84,14 @@ std::string traceback; if (lock.HasErrorOccurred(traceback)) { - OrthancPlugins::LogError("Error in the Python storage commitment SCP callback, " - "traceback:\n" + traceback); + ORTHANC_PLUGINS_LOG_ERROR("Error in the Python storage commitment SCP callback, traceback:\n" + traceback); return OrthancPluginErrorCode_Plugin; } } catch (OrthancPlugins::PluginException& e) { - OrthancPlugins::LogError("Error in the Python storage commitment SCP callback: " + - std::string(e.What(OrthancPlugins::GetGlobalContext()))); + ORTHANC_PLUGINS_LOG_ERROR("Error in the Python storage commitment SCP callback: " + + std::string(e.What(OrthancPlugins::GetGlobalContext()))); } return OrthancPluginErrorCode_Success; } @@ -126,7 +125,7 @@ if (!PyLong_Check(result.GetPyObject())) { - OrthancPlugins::LogError("The Python storage commitment Lookup callback has not returned an int as the return value"); + ORTHANC_PLUGINS_LOG_ERROR("The Python storage commitment Lookup callback has not returned an int as the return value"); return OrthancPluginErrorCode_Plugin; } @@ -135,15 +134,14 @@ std::string traceback; if (lock.HasErrorOccurred(traceback)) { - OrthancPlugins::LogError("Error in the Python storage commitment Lookup callback, " - "traceback:\n" + traceback); + ORTHANC_PLUGINS_LOG_ERROR("Error in the Python storage commitment Lookup callback, traceback:\n" + traceback); return OrthancPluginErrorCode_Plugin; } } catch (OrthancPlugins::PluginException& e) { - OrthancPlugins::LogError("Error in the Python storage commitment Lookup callback: " + - std::string(e.What(OrthancPlugins::GetGlobalContext()))); + ORTHANC_PLUGINS_LOG_ERROR("Error in the Python storage commitment Lookup callback: " + + std::string(e.What(OrthancPlugins::GetGlobalContext()))); } return OrthancPluginErrorCode_Success; } @@ -184,4 +182,4 @@ { ICallbackRegistration::Unregister(storageCommitmentScpCallback_); ICallbackRegistration::Unregister(storageCommitmentLookupCallback_); -} \ No newline at end of file +}