summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-07-02 13:51:38 +0200
committerCarl Hetherington <cth@carlh.net>2024-07-02 13:51:38 +0200
commit939332c5951f10238c43185c450dd78481f32812 (patch)
tree01d0a97af6f0eb9521f0e5dbd9776c1384169b5e
parentccd92419a54e363343569f63ebddebf54c6cfcfd (diff)
More logging.2814-freeze
-rw-r--r--src/verify.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/verify.cc b/src/verify.cc
index 12c90264..4ae6c792 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -1843,13 +1843,16 @@ void
verify_assetmap(
shared_ptr<const DCP> dcp,
boost::filesystem::path xsd_dtd_directory,
- vector<VerificationNote>& notes
+ vector<VerificationNote>& notes,
+ function<void (string)> log
)
{
auto asset_map = dcp->asset_map();
DCP_ASSERT(asset_map);
+ log("-> validate_xml");
validate_xml(asset_map->file().get(), xsd_dtd_directory, notes);
+ log("<- validate_xml");
set<string> uuid_set;
for (auto const& asset: asset_map->assets()) {
@@ -1942,7 +1945,8 @@ dcp::verify (
if (dcp->asset_map_file()) {
stage("Checking ASSETMAP", dcp->asset_map_file().get());
- verify_assetmap(dcp, *xsd_dtd_directory, notes);
+ verify_assetmap(dcp, *xsd_dtd_directory, notes, log);
+ log("verify_assetmap returned");
} else {
notes.push_back ({VerificationNote::Type::ERROR, VerificationNote::Code::MISSING_ASSETMAP});
}