2021-12-30 19:36:57 +02:00
|
|
|
// Copyright (c) 2014-2021 The Bitcoin Core developers
|
2018-07-17 12:51:23 +02:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#include <zmq/zmqutil.h>
|
|
|
|
|
|
|
|
#include <logging.h>
|
|
|
|
#include <zmq.h>
|
|
|
|
|
2021-06-08 13:21:08 +08:00
|
|
|
#include <cerrno>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
void zmqError(const std::string& str)
|
2018-07-17 12:51:23 +02:00
|
|
|
{
|
2021-06-09 14:29:44 +08:00
|
|
|
LogPrint(BCLog::ZMQ, "zmq: Error: %s, msg: %s\n", str, zmq_strerror(errno));
|
2018-07-17 12:51:23 +02:00
|
|
|
}
|