Mercurial > hg > orthanc
changeset 1200:1e1390665639 db-changes
fix sample
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 23 Oct 2014 14:42:11 +0200 |
parents | a843ee8bb903 |
children | 09aa7c126be9 |
files | Core/HttpServer/HttpOutput.cpp Plugins/Engine/PluginsManager.cpp Plugins/Samples/Basic/Plugin.c |
diffstat | 3 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Core/HttpServer/HttpOutput.cpp Thu Oct 23 14:29:45 2014 +0200 +++ b/Core/HttpServer/HttpOutput.cpp Thu Oct 23 14:42:11 2014 +0200 @@ -59,7 +59,7 @@ if (state_ != State_Done) { //asm volatile ("int3;"); - LOG(ERROR) << "This HTTP answer does not contain any body"; + //LOG(ERROR) << "This HTTP answer does not contain any body"; } if (hasContentLength_ && contentPosition_ != contentLength_)
--- a/Plugins/Engine/PluginsManager.cpp Thu Oct 23 14:29:45 2014 +0200 +++ b/Plugins/Engine/PluginsManager.cpp Thu Oct 23 14:42:11 2014 +0200 @@ -179,7 +179,7 @@ if (error) { - LOG(ERROR) << "Exception when dealing with service " << service; + // LOG(ERROR) << "Exception when dealing with service " << service; } else {
--- a/Plugins/Samples/Basic/Plugin.c Thu Oct 23 14:29:45 2014 +0200 +++ b/Plugins/Samples/Basic/Plugin.c Thu Oct 23 14:42:11 2014 +0200 @@ -262,11 +262,11 @@ if (changeType == OrthancPluginChangeType_NewInstance) { - sprintf(info, "/instances/%s/metadata/ReceptionDate", resourceId); + sprintf(info, "/instances/%s/metadata/AnonymizedFrom", resourceId); if (OrthancPluginRestApiGet(context, &tmp, info) == 0) { - sprintf(info, " Instance %s comes from the anonymization of instance %s", - resourceId, (const char*) tmp.data); + sprintf(info, " Instance %s comes from the anonymization of instance", resourceId); + strncat(info, (const char*) tmp.data, tmp.size); OrthancPluginLogWarning(context, info); OrthancPluginFreeMemoryBuffer(context, &tmp); }