diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-10-07 21:50:54 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-10-07 21:50:54 +0000 |
| commit | 7ba1a973a8d06df646961c11dc34f73bd7141834 (patch) | |
| tree | 9b2e79b2566eddbce87582aa08814f4f86affe5b /src/lib | |
| parent | 0dd4b46fddb324fbabf4da9f89a2f1b0f52450e2 (diff) | |
Add a little logging.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/check_content_change_job.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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 <cth@carlh.net> + Copyright (C) 2018-2019 Carl Hetherington <cth@carlh.net> 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 <boost/foreach.hpp> #include <iostream> @@ -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) { |
