mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-06 10:18:44 -05:00
3f05a9e681
zmq_strerror() converts the passed errno into a description, meaning currently you have output like: "errno=No such file or directory". Using msg: would seem to make more sense here.
16 lines
420 B
C++
16 lines
420 B
C++
// Copyright (c) 2014-2018 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));
|
|
}
|