Show some debugging output on stdout when deciding which 'auto' target to use.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 14 Oct 2007 23:14:57 +0000 (23:14 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 14 Oct 2007 23:14:57 +0000 (23:14 +0000)
git-svn-id: http://svn.voria.com/code@930 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/render.cpp

index 1ee95c3..43ea5b6 100644 (file)
@@ -252,10 +252,17 @@ RenderSettings::on_render_pressed()
                {
                        String ext(filename_extension(filename));
                        if (ext.size()) ext=ext.substr(1); // skip initial '.'
+                       synfig::info("render target filename: '%s'; extension: '%s'", filename.c_str(), ext.c_str());
                        if(Target::ext_book().count(ext))
+                       {
                                target_name=Target::ext_book()[ext];
+                               synfig::info("'%s' is a known extension - using target '%s'", ext.c_str(), target_name.c_str());
+                       }
                        else
+                       {
                                target_name=ext;
+                               synfig::info("unknown extension");
+                       }
                }
                catch(std::runtime_error x)
                {