diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-12-03 15:05:51 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-12-03 15:05:51 +0100 |
commit | 2d79c8b23bdee866af53be9418c99b20419a397c (patch) | |
tree | 2aa2314bc55c928e111f0869c3f07aecf99d705f /contrib | |
parent | 3f382a56da220fbd39fdeb9ce4212629036686cb (diff) | |
download | ODR-AudioEnc-2d79c8b23bdee866af53be9418c99b20419a397c.tar.gz ODR-AudioEnc-2d79c8b23bdee866af53be9418c99b20419a397c.tar.bz2 ODR-AudioEnc-2d79c8b23bdee866af53be9418c99b20419a397c.zip |
Add --edi-verbose option
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/edioutput/Transport.cpp | 2 | ||||
-rw-r--r-- | contrib/edioutput/Transport.h | 2 |
2 files changed, 1 insertions, 3 deletions
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<edi::tcp_client_t>(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, diff --git a/contrib/edioutput/Transport.h b/contrib/edioutput/Transport.h index 6a3f229..c62545c 100644 --- a/contrib/edioutput/Transport.h +++ b/contrib/edioutput/Transport.h @@ -31,11 +31,9 @@ #include "AFPacket.h" #include "PFT.h" #include "Socket.h" -#include <vector> #include <chrono> #include <map> #include <unordered_map> -#include <stdexcept> #include <fstream> #include <cstdint> #include <thread> |