From 0ae0428494f6f3d23ac8224561b73607f524b32c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 23 Oct 2025 12:35:07 +0200 Subject: 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. --- src/lib/encode_cli.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/encode_cli.cc') 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 out, functionlog(); + dcpomatic_log = make_shared(film->file("log")); for (auto i: film->content()) { auto paths = i->paths(); -- cgit v1.2.3