summaryrefslogtreecommitdiff
path: root/src/lib/job.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/job.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/job.cc')
-rw-r--r--src/lib/job.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/job.cc b/src/lib/job.cc
index ab4f5c37a..70f4cd9f0 100644
--- a/src/lib/job.cc
+++ b/src/lib/job.cc
@@ -556,9 +556,7 @@ Job::error_summary() const
void
Job::set_error(string s, string d)
{
- if (_film) {
- _film->log()->log(fmt::format("Error in job: {} ({})", s, d), LogEntry::TYPE_ERROR);
- }
+ dcpomatic_log->log(fmt::format("Error in job: {} ({})", s, d), LogEntry::TYPE_ERROR);
boost::mutex::scoped_lock lm(_state_mutex);
_error_summary = s;