diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-09-23 14:48:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-09-23 14:48:58 +0100 |
| commit | f62909cfe63e6a2e238e655ea0536a5f627e0ddf (patch) | |
| tree | a16876a86bc5e97ff79208ba8410e1be6933571a /src | |
| parent | 794e306a0f5b16cbb49ef9e75e1b9fb88c489b31 (diff) | |
Use log rather the cout in server.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/server.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc index 395786b67..d92fdf2b6 100644 --- a/src/lib/server.cc +++ b/src/lib/server.cc @@ -174,7 +174,9 @@ Server::worker_thread () if (frame >= 0) { struct timeval end; gettimeofday (&end, 0); - cout << "Encoded frame " << frame << " in " << (seconds (end) - seconds (start)) << "\n"; + stringstream s; + s << "Encoded frame " << frame << " in " << (seconds (end) - seconds (start)); + _log->log (s.str ()); } _worker_condition.notify_all (); @@ -184,7 +186,9 @@ Server::worker_thread () void Server::run (int num_threads) { - cout << "Server starting with " << num_threads << " threads.\n"; + stringstream s; + s << "Server starting with " << num_threads << " threads."; + _log->log (s.str ()); for (int i = 0; i < num_threads; ++i) { _worker_threads.push_back (new thread (bind (&Server::worker_thread, this))); |
