Skip to content
Snippets Groups Projects
Commit 4bd77662 authored by Michael Davis's avatar Michael Davis
Browse files

[EOS-CTA] Adds debug functions to the namespace

parent e0434939
Branches
Tags
No related merge requests found
......@@ -263,7 +263,7 @@ int exceptionThrowingMain(int argc, const char *const *const argv)
if(isJson)
{
OutputJsonString(myout, &notification);
XrdSsiPb::OutputJsonString(myout, &notification);
}
// Obtain a Service Provider
......@@ -280,7 +280,7 @@ int exceptionThrowingMain(int argc, const char *const *const argv)
if(isJson)
{
OutputJsonString(myout, &response);
XrdSsiPb::OutputJsonString(myout, &response);
}
// Delete all global objects allocated by libprotobuf
......
......@@ -23,7 +23,7 @@
#include <stdio.h>
#include <google/protobuf/util/json_util.h>
namespace XrdSsiPb {
static void OutputJsonString(std::ostream &os, const google::protobuf::Message *message)
{
......@@ -51,4 +51,6 @@ inline void DumpBuffer(const std::string &buffer)
fprintf(stderr, "\n");
}
} // namespace XrdSsiPb
#endif
......@@ -149,7 +149,7 @@ bool Request<RequestType, MetadataType, AlertType>::ProcessResponse(const XrdSsi
// Handle errors in the XRootD framework (e.g. no response from server)
case XrdSsiRespInfo::isError: throw XrdSsiException(eInfo.Get());
case XrdSsiRespInfo::isError: throw XrdSsiException(eInfo);
// To implement detached requests, add another callback type which saves the handle
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment