summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-06-10 09:34:37 +0100
committerCarl Hetherington <cth@carlh.net>2014-06-10 09:34:37 +0100
commit80516b05b90d4730200a27403ae95e2561873126 (patch)
tree51ce197aaa9d712d21594afbe7ef78915692432c /src/lib
parent9d3d05cf38a3c7a0382f3aac987946dff1f9b66d (diff)
Report CLI server errors to stderr as well as the log.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/server.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc
index 6b4064cd7..ed7fb6145 100644
--- a/src/lib/server.cc
+++ b/src/lib/server.cc
@@ -104,6 +104,7 @@ Server::process (shared_ptr<Socket> socket, struct timeval& after_read, struct t
try {
encoded->send (socket);
} catch (std::exception& e) {
+ cerr << "Send failed; frame " << dcp_video_frame.index() << "\n";
LOG_ERROR ("Send failed; frame %1", dcp_video_frame.index());
throw;
}
@@ -139,6 +140,7 @@ Server::worker_thread ()
frame = process (socket, after_read, after_encode);
ip = socket->socket().remote_endpoint().address().to_string();
} catch (std::exception& e) {
+ cerr << "Error: " << e.what() << "\n";
LOG_ERROR ("Error: %1", e.what());
}