From 2d79c8b23bdee866af53be9418c99b20419a397c Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 3 Dec 2024 15:05:51 +0100 Subject: Add --edi-verbose option --- contrib/edioutput/Transport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/edioutput/Transport.cpp') diff --git a/contrib/edioutput/Transport.cpp b/contrib/edioutput/Transport.cpp index cbff6d4..4979e93 100644 --- a/contrib/edioutput/Transport.cpp +++ b/contrib/edioutput/Transport.cpp @@ -195,7 +195,7 @@ void Sender::write(const AFPacket& af_packet) else if (auto tcp_dest = dynamic_pointer_cast(dest)) { const auto error_stats = tcp_senders.at(tcp_dest.get())->sendall(af_packet); - if (error_stats.has_seen_new_errors) { + if (m_conf.verbose and error_stats.has_seen_new_errors) { fprintf(stderr, "TCP output %s:%d has %zu reconnects: most recent error: %s\n", tcp_dest->dest_addr.c_str(), tcp_dest->dest_port, -- cgit v1.2.3