logger: Use notices for config file and fonts

It is useful for people to see what config file polybar loaded.

For debugging font issues people almost always need to check what fonts
polybar loaded, for that they need to run polybar with info logging. Now
this information is always provided. This requires an update in the font
wiki page.
This commit is contained in:
patrick96 2020-03-01 21:26:20 +01:00 committed by Patrick Ziegler
parent 3f60561ae3
commit b2613fa269
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ config_parser::config_parser(const logger& logger, string&& file, string&& bar)
: m_log(logger), m_config(file_util::expand(file)), m_barname(move(bar)) {}
config::make_type config_parser::parse() {
m_log.info("Parsing config file: %s", m_config);
m_log.notice("Parsing config file: %s", m_config);
parse_file(m_config, {});

View File

@ -159,7 +159,7 @@ renderer::renderer(connection& conn, signal_emitter& sig, const config& conf, co
pattern.erase(pos);
}
auto font = cairo::make_font(*m_context, string{pattern}, offset, dpi_x, dpi_y);
m_log.info("Loaded font \"%s\" (name=%s, offset=%i, file=%s)", pattern, font->name(), offset, font->file());
m_log.notice("Loaded font \"%s\" (name=%s, offset=%i, file=%s)", pattern, font->name(), offset, font->file());
*m_context << move(font);
}
}