Commit 75a12c69 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[3427] Logging configuration now properly processes more than one logger

parent 23cff9eb
...@@ -156,6 +156,8 @@ void LogConfigParser::applyConfiguration() { ...@@ -156,6 +156,8 @@ void LogConfigParser::applyConfiguration() {
// Set locking directory to /tmp // Set locking directory to /tmp
setenv("B10_LOCKFILE_DIR_FROM_BUILD", "/tmp", 1); setenv("B10_LOCKFILE_DIR_FROM_BUILD", "/tmp", 1);
std::vector<LoggerSpecification> specs;
// Now iterate through all specified loggers // Now iterate through all specified loggers
for (LoggingInfoStorage::const_iterator it = config_->logging_info_.begin(); for (LoggingInfoStorage::const_iterator it = config_->logging_info_.begin();
it != config_->logging_info_.end(); ++it) { it != config_->logging_info_.end(); ++it) {
...@@ -206,9 +208,11 @@ void LogConfigParser::applyConfiguration() { ...@@ -206,9 +208,11 @@ void LogConfigParser::applyConfiguration() {
spec.addOutputOption(option); spec.addOutputOption(option);
} }
LoggerManager manager; specs.push_back(spec);
manager.process(spec);
} }
LoggerManager manager;
manager.process(specs.begin(), specs.end());
} }
void LogConfigParser::applyDefaultConfiguration(bool verbose) { void LogConfigParser::applyDefaultConfiguration(bool verbose) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment