Some more logging in A/B transcoder.
authorCarl Hetherington <cth@carlh.net>
Tue, 4 Jun 2013 14:02:11 +0000 (15:02 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 4 Jun 2013 14:02:11 +0000 (15:02 +0100)
src/lib/ab_transcode_job.cc

index 7ef682a48b9a4df1c0c979b3c106a29198e3b2bd..a204677db34910be180bfd9a94fa22bd20857ab5 100644 (file)
@@ -25,6 +25,7 @@
 #include "ab_transcoder.h"
 #include "config.h"
 #include "encoder.h"
+#include "log.h"
 
 #include "i18n.h"
 
@@ -59,10 +60,13 @@ ABTranscodeJob::run ()
                set_progress (1);
                set_state (FINISHED_OK);
 
+               _film->log()->log ("A/B transcode job completed successfully");
+
        } catch (std::exception& e) {
 
                set_progress (1);
                set_state (FINISHED_ERROR);
+               _film->log()->log (String::compose ("A/B transcode job failed (%1)", e.what()));
                throw;
        }
 }