From 7ba1a973a8d06df646961c11dc34f73bd7141834 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 7 Oct 2019 21:50:54 +0000 Subject: Add a little logging. --- src/lib/check_content_change_job.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/check_content_change_job.cc b/src/lib/check_content_change_job.cc index 468933ae4..0b52f414b 100644 --- a/src/lib/check_content_change_job.cc +++ b/src/lib/check_content_change_job.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2018 Carl Hetherington + Copyright (C) 2018-2019 Carl Hetherington This file is part of DCP-o-matic. @@ -23,6 +23,7 @@ #include "examine_content_job.h" #include "content.h" #include "film.h" +#include "dcpomatic_log.h" #include #include @@ -63,11 +64,13 @@ CheckContentChangeJob::run () bool ic = false; for (size_t j = 0; j < i->number_of_paths(); ++j) { if (boost::filesystem::last_write_time(i->path(j)) != i->last_write_time(j)) { + LOG_GENERAL("File %1 changed; last_write_time now %2, was %3", i->path(j).string(), boost::filesystem::last_write_time(i->path(j)), i->last_write_time(j)); ic = true; break; } } if (!ic && i->calculate_digest() != i->digest()) { + LOG_GENERAL("Content %1 changed; digest now %2, was %3", i->path(0).string(), i->calculate_digest(), i->digest()); ic = true; } if (ic) { -- cgit v1.2.3