1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-10-27 05:23:39 -04:00

refactor(config): Print filename at very beginning

There have now been several instances of people reporting that their
bars are not found and polybar not printing the config file name because
the error is thrown first, making it very difficult to debug
This commit is contained in:
patrick96 2018-02-15 08:31:00 +01:00 committed by Patrick Ziegler
parent 9db3e7f251
commit 482876b63a

View file

@ -28,6 +28,8 @@ config::config(const logger& logger, string&& path, string&& bar)
throw application_error("Could not find config file: " + m_file);
}
m_log.info("Loading config: %s", m_file);
parse_file();
copy_inherited();
@ -43,7 +45,6 @@ config::config(const logger& logger, string&& path, string&& bar)
throw application_error("Undefined bar: " + m_barname);
}
m_log.info("Loaded %s", m_file);
m_log.trace("config: Current bar section: [%s]", section());
}