More debugging.
authorCarl Hetherington <cth@carlh.net>
Thu, 23 Nov 2023 11:09:39 +0000 (12:09 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 23 Nov 2023 11:09:39 +0000 (12:09 +0100)
src/lib/config.cc
src/lib/state.cc

index bd17dcbcff7ca04cd6bad72ba4d545bb64ea6569..0572f4dd36097bab0bc9eef933ba136a32902440 100644 (file)
@@ -290,8 +290,11 @@ void
 Config::read_config()
 try
 {
+       std::cout << "=> Config::read_config()\n";
+       std::cout << "config_read_file()=" << config_read_file() << "\n";
        cxml::Document f ("Config");
        f.read_file(config_read_file());
+       std::cout << "back from read_file\n";
 
        auto version = f.optional_number_child<int> ("Version");
        if (version && *version < _current_version) {
@@ -1449,6 +1452,7 @@ config_file (boost::filesystem::path main)
        cxml::Document f ("Config");
        if (!dcp::filesystem::exists(main)) {
                /* It doesn't exist, so there can't be any links; just return it */
+               std::cout << main << " doesn't exist.\n";
                return main;
        }
 
index e0d00881027a3bc62cd514df09274075287ce6a5..daae0e7acd2a829e8645b73d89271124e6c50802 100644 (file)
@@ -65,6 +65,8 @@ State::read_path (string file)
                auto full = config_path_or_override(i) / file;
                if (dcp::filesystem::exists(full)) {
                        return full;
+               } else {
+                       std::cout << full << " does not exist.\n";
                }
        }