From 327559344f475a54a5f2c6e8d28fa75247aef637 Mon Sep 17 00:00:00 2001 From: Daniel Hartwig Date: Thu, 3 May 2012 02:33:59 +0800 Subject: Actually use aptitude::Logging::Levels Closes: #654344 --- src/main.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.cc b/src/main.cc index d09344c9..ea90abed 100644 --- a/src/main.cc +++ b/src/main.cc @@ -494,7 +494,7 @@ namespace } /** \brief Apply logging levels from the configuration file. */ - void apply_config_file_logging_levels(Configuration *config) + void apply_config_file_logging_levels(signalling_config *config) { const Configuration::Item *tree = config->Tree(PACKAGE "::Logging::Levels"); if(tree == NULL) @@ -1041,6 +1041,8 @@ int main(int argc, char *argv[]) why_display_mode = aptitude::why::no_summary; } + apply_config_file_logging_levels(aptcfg); + if(!log_file.empty()) Logger::getLogger("") ->connect_message_logged(sigc::bind(sigc::ptr_fun(&handle_message_logged), -- cgit v1.2.3