zmqutil.cpp raw

   1  // Copyright (c) 2014-present The Bitcoin Core developers
   2  // Distributed under the MIT software license, see the accompanying
   3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
   4  
   5  #include <zmq/zmqutil.h>
   6  
   7  #include <util/log.h>
   8  
   9  #include <zmq.h>
  10  
  11  #include <cerrno>
  12  #include <string>
  13  
  14  void zmqError(const std::string& str)
  15  {
  16      LogDebug(BCLog::ZMQ, "Error: %s, msg: %s\n", str, zmq_strerror(errno));
  17  }
  18