diff --git a/xroot_ssi_pb/XrdSsiPbAlert.hpp b/xroot_ssi_pb/XrdSsiPbAlert.hpp
index dbdaecc84be62260058887229c01e2ef8457cff8..0ea43887d87304bce83ba5cf3306ead144a1916e 100644
--- a/xroot_ssi_pb/XrdSsiPbAlert.hpp
+++ b/xroot_ssi_pb/XrdSsiPbAlert.hpp
@@ -42,7 +42,7 @@ public:
    AlertMsg(const AlertType &alert) : XrdSsiRespInfoMsg(nullptr, 0)
    {
 #ifdef XRDSSI_DEBUG
-      std::cout << "[DEBUG] AlertMsg() constructor" << std::endl;
+      std::cerr << "[DEBUG] AlertMsg() constructor" << std::endl;
 #endif
 
       // Serialize the Alert
@@ -58,7 +58,7 @@ public:
 
    ~AlertMsg() {
 #ifdef XRDSSI_DEBUG
-      std::cout << "[DEBUG] ~AlertMsg() destructor" << std::endl;
+      std::cerr << "[DEBUG] ~AlertMsg() destructor" << std::endl;
 #endif
    }
 
@@ -68,8 +68,8 @@ public:
 
    void RecycleMsg(bool sent=true) {
 #ifdef XRDSSI_DEBUG
-      std::cout << "[DEBUG] AlertMsg::RecycleMsg()" << std::endl;
-      std::cout << "[DEBUG] Alert \"" << alert_str << "\" was " << (sent ? "sent." : "not sent.") << std::endl;
+      std::cerr << "[DEBUG] AlertMsg::RecycleMsg()" << std::endl;
+      std::cerr << "[DEBUG] Alert \"" << alert_str << "\" was " << (sent ? "sent." : "not sent.") << std::endl;
 #endif
       delete this;
    }
diff --git a/xroot_ssi_pb/XrdSsiPbRequest.hpp b/xroot_ssi_pb/XrdSsiPbRequest.hpp
index 320d6cf935ba086aa2821ec6a748089d634d6e2d..56c0d4f1f81f04f8ee1893949932050a87575c3f 100644
--- a/xroot_ssi_pb/XrdSsiPbRequest.hpp
+++ b/xroot_ssi_pb/XrdSsiPbRequest.hpp
@@ -56,7 +56,7 @@ public:
 
    virtual ~Request() {
 #ifdef XRDSSI_DEBUG
-      std::cout << "[DEBUG] ~Request destructor" << std::endl;
+      std::cerr << "[DEBUG] ~Request destructor" << std::endl;
 #endif
    }
 
@@ -110,7 +110,7 @@ Request(const RequestType &request, unsigned int response_bufsize, uint16_t time
    m_response_bufsize(response_bufsize)
 {
 #ifdef XRDSSI_DEBUG
-   std::cout << "[DEBUG] Request constructor: "
+   std::cerr << "[DEBUG] Request constructor: "
              << "Response buffer size = " << m_response_bufsize
              << " bytes, timeout = " << timeout << std::endl;
 #endif
@@ -139,7 +139,7 @@ template<typename RequestType, typename MetadataType, typename AlertType>
 bool Request<RequestType, MetadataType, AlertType>::ProcessResponse(const XrdSsiErrInfo &eInfo, const XrdSsiRespInfo &rInfo)
 {
 #ifdef XRDSSI_DEBUG
-   std::cout << "[DEBUG] ProcessResponse(): response type = " << rInfo.State() << std::endl;
+   std::cerr << "[DEBUG] ProcessResponse(): response type = " << rInfo.State() << std::endl;
 #endif
 
    try {
@@ -231,7 +231,7 @@ void Request<RequestType, MetadataType, AlertType>::ProcessResponseMetadata()
    int metadata_len;
    const char *metadata_buffer = GetMetadata(metadata_len);
 #ifdef XRDSSI_DEBUG
-   std::cout << "[DEBUG] ProcessResponseMetadata(): received " << metadata_len << " bytes of data" << std::endl;
+   std::cerr << "[DEBUG] ProcessResponseMetadata(): received " << metadata_len << " bytes of data" << std::endl;
 #endif
 
    // Deserialize the metadata
@@ -272,7 +272,7 @@ XrdSsiRequest::PRD_Xeq Request<RequestType, MetadataType, AlertType>
              ::ProcessResponseData(const XrdSsiErrInfo &eInfo, char *response_bufptr, int response_buflen, bool is_last)
 {
 #ifdef XRDSSI_DEBUG
-   std::cout << "[DEBUG] ProcessResponseData(): received " << response_buflen << " bytes of data" << std::endl;
+   std::cerr << "[DEBUG] ProcessResponseData(): received " << response_buflen << " bytes of data" << std::endl;
 #endif
 
    // The buffer length can be 0 if the response is metadata only
diff --git a/xroot_ssi_pb/XrdSsiPbRequestProc.hpp b/xroot_ssi_pb/XrdSsiPbRequestProc.hpp
index d220f73d7162cadff8c695735b1a1ea7ad2be38f..87f0f812bc61be83d870e487bf52497e8f47a1f7 100644
--- a/xroot_ssi_pb/XrdSsiPbRequestProc.hpp
+++ b/xroot_ssi_pb/XrdSsiPbRequestProc.hpp
@@ -62,12 +62,12 @@ class RequestProc : public XrdSsiResponder
 public:
    RequestProc(XrdSsiResource &resource) : m_resource(resource) {
 #ifdef XRDSSI_DEBUG
-      std::cout << "[DEBUG] RequestProc() constructor" << std::endl;
+      std::cerr << "[DEBUG] RequestProc() constructor" << std::endl;
 #endif
    }
    virtual ~RequestProc() {
 #ifdef XRDSSI_DEBUG
-      std::cout << "[DEBUG] ~RequestProc() destructor" << std::endl;
+      std::cerr << "[DEBUG] ~RequestProc() destructor" << std::endl;
 #endif
    }
 
@@ -103,7 +103,7 @@ private:
 
    void ExecuteAction() {
 #ifdef XRDSSI_DEBUG
-      std::cout << "[DEBUG] Called default RequestProc::ExecuteAction()" << std::endl;
+      std::cerr << "[DEBUG] Called default RequestProc::ExecuteAction()" << std::endl;
 #endif
    }
 
@@ -140,7 +140,7 @@ void RequestProc<RequestType, MetadataType, AlertType>::Execute()
                                       //< In any case it should be <= timeout on the client side?
 
 #ifdef XRDSSI_DEBUG
-   std::cout << "[DEBUG] RequestProc::Execute()" << std::endl;
+   std::cerr << "[DEBUG] RequestProc::Execute()" << std::endl;
 #endif
 
    // Deserialize the Request
@@ -216,7 +216,7 @@ template <typename RequestType, typename MetadataType, typename AlertType>
 void RequestProc<RequestType, MetadataType, AlertType>::Finished(XrdSsiRequest &rqstR, const XrdSsiRespInfo &rInfo, bool cancel)
 {
 #ifdef XRDSSI_DEBUG
-   std::cout << "[DEBUG] RequestProc::Finished()" << std::endl;
+   std::cerr << "[DEBUG] RequestProc::Finished()" << std::endl;
 #endif
 
    if(cancel)
diff --git a/xroot_ssi_pb/XrdSsiPbService.hpp b/xroot_ssi_pb/XrdSsiPbService.hpp
index 9ea1ebb7ace998e74f0652475ff4e1687cd89e8d..d86a6705bddd6fa92de9b41568f4829cc3dfe7a1 100644
--- a/xroot_ssi_pb/XrdSsiPbService.hpp
+++ b/xroot_ssi_pb/XrdSsiPbService.hpp
@@ -35,12 +35,12 @@ class Service : public XrdSsiService
 public:
             Service() {
 #ifdef XRDSSI_DEBUG
-               std::cout << "[DEBUG] Service() constructor" << std::endl;
+               std::cerr << "[DEBUG] Service() constructor" << std::endl;
 #endif
             }
    virtual ~Service() {
 #ifdef XRDSSI_DEBUG
-               std::cout << "[DEBUG] ~Service() destructor" << std::endl;
+               std::cerr << "[DEBUG] ~Service() destructor" << std::endl;
 #endif
             }
 
@@ -54,7 +54,7 @@ public:
    virtual bool Stop() override
    {
 #ifdef XRDSSI_DEBUG
-      std::cout << "[DEBUG] Service::Stop()" << std::endl;
+      std::cerr << "[DEBUG] Service::Stop()" << std::endl;
 #endif
       return false;
    }
@@ -67,7 +67,7 @@ public:
    virtual bool Prepare(XrdSsiErrInfo &eInfo, const XrdSsiResource &resource) override
    {
 #ifdef XRDSSI_DEBUG
-      std::cout << "[DEBUG] Service::Prepare():" << std::endl;
+      std::cerr << "[DEBUG] Service::Prepare():" << std::endl;
       std::cerr << "[DEBUG]    Resource name: " << resource.rName << std::endl
                 << "[DEBUG]    Resource user: " << resource.rUser << std::endl
                 << "[DEBUG]    Resource info: " << resource.rInfo << std::endl
@@ -108,7 +108,7 @@ public:
                        XrdSsiRequest &reqRef, XrdSsiResource *resp) override
    {
 #ifdef XRDSSI_DEBUG
-      std::cout << "[DEBUG] Service::Attach()" << std::endl;
+      std::cerr << "[DEBUG] Service::Attach()" << std::endl;
 #endif
       return true;
    }
@@ -131,7 +131,7 @@ void Service<RequestType, MetadataType, AlertType>::ProcessRequest(XrdSsiRequest
    // Bind the processor to the request. Inherits the BindRequest method from XrdSsiResponder.
 
 #ifdef XRDSSI_DEBUG
-   std::cout << "[DEBUG] XrdSsiPbService::ProcessRequest(): Binding Processor to Request" << std::endl;
+   std::cerr << "[DEBUG] XrdSsiPbService::ProcessRequest(): Binding Processor to Request" << std::endl;
 #endif
    processor.BindRequest(reqRef);
 
@@ -142,7 +142,7 @@ void Service<RequestType, MetadataType, AlertType>::ProcessRequest(XrdSsiRequest
    // Tell the framework we have finished with the request object: unbind the request from the responder
 
 #ifdef XRDSSI_DEBUG
-   std::cout << "[DEBUG] XrdSsiPbService::ProcessRequest(): Unbinding Processor from Request" << std::endl;
+   std::cerr << "[DEBUG] XrdSsiPbService::ProcessRequest(): Unbinding Processor from Request" << std::endl;
 #endif
 
    processor.UnBindRequest();
diff --git a/xroot_ssi_pb/XrdSsiPbServiceClientSide.hpp b/xroot_ssi_pb/XrdSsiPbServiceClientSide.hpp
index 1b4d896e003bcc05a881e24e9398ba9005a23b3a..ee98a474decf2f97bf50da5df1944021d1d299f2 100644
--- a/xroot_ssi_pb/XrdSsiPbServiceClientSide.hpp
+++ b/xroot_ssi_pb/XrdSsiPbServiceClientSide.hpp
@@ -85,7 +85,7 @@ ServiceClientSide(const std::string &endpoint, const std::string &resource,
    m_server_tmo(server_tmo)
 {
 #ifdef XRDSSI_DEBUG
-   std::cout << "[DEBUG] ServiceClientSide() constructor" << std::endl;
+   std::cerr << "[DEBUG] ServiceClientSide() constructor" << std::endl;
 #endif
    XrdSsiErrInfo eInfo;
 
@@ -125,7 +125,7 @@ template <typename RequestType, typename MetadataType, typename AlertType>
 ServiceClientSide<RequestType, MetadataType, AlertType>::~ServiceClientSide()
 {
 #ifdef XRDSSI_DEBUG
-   std::cout << "[DEBUG] ServiceClientSide() destructor" << std::endl;
+   std::cerr << "[DEBUG] ServiceClientSide() destructor" << std::endl;
 
    if(!m_server_ptr->Stop())
    {