Don't fail the transcode job if we can't write analytics.
authorCarl Hetherington <cth@carlh.net>
Fri, 29 Oct 2021 10:56:08 +0000 (12:56 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 4 Nov 2021 10:43:57 +0000 (11:43 +0100)
src/lib/transcode_job.cc

index 3502c3346c48072824f04f22936dba0fcc04ba83..8186b9e7cdc30f680e655cf1cb2b68cd25b88074 100644 (file)
@@ -108,7 +108,11 @@ TranscodeJob::run ()
                LOG_GENERAL (N_("Transcode job completed successfully: %1 fps"), fps);
 
                if (dynamic_pointer_cast<DCPEncoder>(_encoder)) {
-                       Analytics::instance()->successful_dcp_encode();
+                       try {
+                               Analytics::instance()->successful_dcp_encode();
+                       } catch (FileError& e) {
+                               LOG_WARNING (N_("Failed to write analytics (%1)"), e.what());
+                       }
                }
 
                /* XXX: this shouldn't be here */