summaryrefslogtreecommitdiff
path: root/src/lib/encode_server.cc
diff options
context:
space:
mode:
authorcah <cth@carlh.net>2025-07-10 22:47:19 +0200
committercah <cth@carlh.net>2025-07-10 22:47:19 +0200
commit4be4e97abf911e7633172ada950d107a3ed28834 (patch)
treec9deceb5f3684fa081db0613da88264732093fcb /src/lib/encode_server.cc
parent727c1aa7da8b325dfa38c8443b1dd356acaf6ec3 (diff)
parent42bde2d97039f6d0d645d83db90612d18ebf225a (diff)
Merge branch 'compose-to-fmt-take2'
This removes all uses of String::compose, replacing them with fmt and updating the i18n strings where required.
Diffstat (limited to 'src/lib/encode_server.cc')
-rw-r--r--src/lib/encode_server.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/encode_server.cc b/src/lib/encode_server.cc
index 7598ebcf6..cd7e89abb 100644
--- a/src/lib/encode_server.cc
+++ b/src/lib/encode_server.cc
@@ -25,7 +25,6 @@
*/
-#include "compose.hpp"
#include "config.h"
#include "constants.h"
#include "cross.h"
@@ -167,7 +166,7 @@ EncodeServer::process (shared_ptr<Socket> socket, struct timeval& after_read, st
socket->write (encoded.data(), encoded.size());
} catch (std::exception& e) {
cerr << "Send failed; frame " << dcp_video_frame.index() << "\n";
- LOG_ERROR ("Send failed; frame %1", dcp_video_frame.index());
+ LOG_ERROR ("Send failed; frame {}", dcp_video_frame.index());
throw;
}
@@ -210,7 +209,7 @@ EncodeServer::worker_thread ()
ip = socket->socket().remote_endpoint().address().to_string();
} catch (std::exception& e) {
cerr << "Error: " << e.what() << "\n";
- LOG_ERROR ("Error: %1", e.what());
+ LOG_ERROR ("Error: {}", e.what());
}
gettimeofday (&end, 0);
@@ -245,7 +244,7 @@ EncodeServer::worker_thread ()
void
EncodeServer::run ()
{
- LOG_GENERAL ("Server %1 (%2) starting with %3 threads", dcpomatic_version, dcpomatic_git_commit, _num_threads);
+ LOG_GENERAL ("Server {} ({}) starting with {} threads", dcpomatic_version, dcpomatic_git_commit, _num_threads);
if (_verbose) {
cout << variant::dcpomatic_encode_server() << " starting with " << _num_threads << " threads.\n";
}