summaryrefslogtreecommitdiff
path: root/src/lib/encode_cli.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-23 12:35:07 +0200
committerCarl Hetherington <cth@carlh.net>2025-10-23 12:35:09 +0200
commit0ae0428494f6f3d23ac8224561b73607f524b32c (patch)
treea8f48f3bec5b595cd7eaac5f168734d1b6f5293a /src/lib/encode_cli.cc
parentce596021e11ea3b579f759436d66c43ac107d3d1 (diff)
Remove log handling from Film.
It should be the main UI's responsibility to set up dcpomatic_log, maybe writing it to the film's directory if it wants to.
Diffstat (limited to 'src/lib/encode_cli.cc')
-rw-r--r--src/lib/encode_cli.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/encode_cli.cc b/src/lib/encode_cli.cc
index 8bf1a4a26..91fc7ee29 100644
--- a/src/lib/encode_cli.cc
+++ b/src/lib/encode_cli.cc
@@ -26,6 +26,7 @@
#include "dcpomatic_log.h"
#include "encode_server_finder.h"
#include "ffmpeg_film_encoder.h"
+#include "file_log.h"
#include "film.h"
#include "filter.h"
#ifdef DCPOMATIC_GROK
@@ -518,7 +519,7 @@ encode_cli(int argc, char* argv[], function<void (string)> out, function<void ()
return {};
}
- dcpomatic_log = film->log();
+ dcpomatic_log = make_shared<FileLog>(film->file("log"));
for (auto i: film->content()) {
auto paths = i->paths();