Added more info-level logging
This commit is contained in:
parent
e90f559a10
commit
bfafac735e
|
@ -165,12 +165,14 @@ int main(int platformArgc, char *platformArgv[]) {
|
||||||
ProgressForwarder progressSink([](double progress) { logging::log(ProgressEntry(progress)); });
|
ProgressForwarder progressSink([](double progress) { logging::log(ProgressEntry(progress)); });
|
||||||
|
|
||||||
// Animate the recording
|
// Animate the recording
|
||||||
|
logging::info("Starting animation.");
|
||||||
JoiningContinuousTimeline<Shape> animation = animateWaveFile(
|
JoiningContinuousTimeline<Shape> animation = animateWaveFile(
|
||||||
inputFilePath,
|
inputFilePath,
|
||||||
dialogFile.isSet() ? readUtf8File(path(dialogFile.getValue())) : boost::optional<string>(),
|
dialogFile.isSet() ? readUtf8File(path(dialogFile.getValue())) : boost::optional<string>(),
|
||||||
targetShapeSet,
|
targetShapeSet,
|
||||||
maxThreadCount.getValue(),
|
maxThreadCount.getValue(),
|
||||||
progressSink);
|
progressSink);
|
||||||
|
logging::info("Done animating.");
|
||||||
|
|
||||||
// Export animation
|
// Export animation
|
||||||
unique_ptr<Exporter> exporter = createExporter(exportFormat.getValue());
|
unique_ptr<Exporter> exporter = createExporter(exportFormat.getValue());
|
||||||
|
@ -180,7 +182,9 @@ int main(int platformArgc, char *platformArgv[]) {
|
||||||
outputFile->exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
outputFile->exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
}
|
}
|
||||||
ExporterInput exporterInput = ExporterInput(inputFilePath, animation, targetShapeSet);
|
ExporterInput exporterInput = ExporterInput(inputFilePath, animation, targetShapeSet);
|
||||||
|
logging::info("Starting export.");
|
||||||
exporter->exportAnimation(exporterInput, outputFile ? *outputFile : std::cout);
|
exporter->exportAnimation(exporterInput, outputFile ? *outputFile : std::cout);
|
||||||
|
logging::info("Done exporting.");
|
||||||
|
|
||||||
logging::log(SuccessEntry());
|
logging::log(SuccessEntry());
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
|
Loading…
Reference in New Issue