diff options
Diffstat (limited to 'src/zmq/zmqutil.cpp')
-rw-r--r-- | src/zmq/zmqutil.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/zmq/zmqutil.cpp b/src/zmq/zmqutil.cpp new file mode 100644 index 0000000000..f0568634d4 --- /dev/null +++ b/src/zmq/zmqutil.cpp @@ -0,0 +1,16 @@ +// Copyright (c) 2014-2021 The Bitcoin Core developers +// 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> + +#include <cerrno> +#include <string> + +void zmqError(const std::string& str) +{ + LogPrint(BCLog::ZMQ, "zmq: Error: %s, msg: %s\n", str, zmq_strerror(errno)); +} |