# HG changeset patch # User Sebastien Jodogne # Date 1414068131 -7200 # Node ID 1e139066563925a0bb955e35254ceae9d91f5f21 # Parent a843ee8bb903648f9836514feabc254e36ab577e fix sample diff -r a843ee8bb903 -r 1e1390665639 Core/HttpServer/HttpOutput.cpp --- 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_) diff -r a843ee8bb903 -r 1e1390665639 Plugins/Engine/PluginsManager.cpp --- 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 { diff -r a843ee8bb903 -r 1e1390665639 Plugins/Samples/Basic/Plugin.c --- 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); }