diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-06-10 09:34:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-06-10 09:34:37 +0100 |
| commit | 80516b05b90d4730200a27403ae95e2561873126 (patch) | |
| tree | 51ce197aaa9d712d21594afbe7ef78915692432c /src/lib | |
| parent | 9d3d05cf38a3c7a0382f3aac987946dff1f9b66d (diff) | |
Report CLI server errors to stderr as well as the log.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/server.cc | 2 |
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()); } |
