\r
o Fail early with clear error message if configured paths are not\r
creatable/writable.\r
+ o Added backwards compatibility (with deprecation warning) for using\r
+ thumbnails-path instead of thumbnail-path in casparcg.config.\r
\r
CasparCG 2.1.0 Beta 1 (w.r.t 2.0.7 Stable)\r
==========================================\r
ftemplate = clean_path(boost::filesystem::complete(paths.get(L"template-path", initial + L"/template/")).wstring());
data = clean_path(paths.get(L"data-path", initial + L"/data/"));
font = clean_path(paths.get(L"font-path", initial + L"/font/"));
- thumbnails = clean_path(paths.get(L"thumbnail-path", initial + L"/thumbnail/"));
+ thumbnails = clean_path(paths.get(L"thumbnail-path", paths.get(L"thumbnails-path", initial + L"/thumbnail/")));
}
catch (...)
{
return pt;
}
+void log_configuration_warnings()
+{
+ if (pt.empty())
+ return;
+
+ if (pt.get_optional<std::wstring>(L"configuration.paths.thumbnails-path"))
+ CASPAR_LOG(warning) << L"Element thumbnails-path in casparcg.config has been deprecated. Use thumbnail-path instead.";
+}
+
}}
const boost::property_tree::wptree& properties();
+void log_configuration_warnings();
+
} }
log::add_file_sink(env::log_folder() + L"calltrace", caspar::log::category == caspar::log::log_category::calltrace);
std::wcout << L"Logging [info] or higher severity to " << env::log_folder() << std::endl << std::endl;
+ // Once logging to file, log configuration warnings.
+ env::log_configuration_warnings();
+
// Setup console window.
setup_console_window();
}
catch (const user_error& e)
{
- CASPAR_LOG(fatal) << get_message_and_context(e) << " Please check the configuration file (" << u8(config_file_name) << ") for errors. Turn on log level debug for stacktrace.";
+ CASPAR_LOG(fatal) << get_message_and_context(e) << " Please check the configuration file (" << u8(config_file_name) << ") for errors.";
wait_for_keypress();
}
catch(...)