aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-02 13:27:44 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-02 13:27:44 +0000
commit801487e0fcc62a3b81317b7ff7b51406fa0b05e1 (patch)
tree36f416e48c89bde0c40e3eba62a4a1bd9de1c640
parentbdc6e4e3c06f9135d62ee357fb0d3f3b0a4c08ef (diff)
downloadpaludis-801487e0fcc62a3b81317b7ff7b51406fa0b05e1.tar.gz
paludis-801487e0fcc62a3b81317b7ff7b51406fa0b05e1.tar.xz
Better debug output
-rw-r--r--paludis/environments/paludis/paludis_environment.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/paludis/environments/paludis/paludis_environment.cc b/paludis/environments/paludis/paludis_environment.cc
index 29c798a..3b41af3 100644
--- a/paludis/environments/paludis/paludis_environment.cc
+++ b/paludis/environments/paludis/paludis_environment.cc
@@ -68,8 +68,26 @@ PaludisEnvironment::PaludisEnvironment(const std::string & s) :
for (PaludisConfig::RepositoryIterator r(_imp->config->begin_repositories()),
r_end(_imp->config->end_repositories()) ; r != r_end ; ++r)
+ {
+ std::string keys;
+ if (Log::get_instance()->log_level() <= ll_debug)
+ {
+ for (AssociativeCollection<std::string, std::string>::Iterator
+ i(r->keys->begin()), i_end(r->keys->end()) ; i != i_end ; ++i)
+ {
+ if (! keys.empty())
+ keys.append(", ");
+ keys.append("'" + i->first + "'='" + i->second + "'");
+ }
+
+ Log::get_instance()->message(ll_debug, lc_context,
+ "Creating repository with format='" + r->format + "', importance='"
+ + stringify(r->importance) + "', keys " + keys);
+ }
+
package_database()->add_repository(
RepositoryMaker::get_instance()->find_maker(r->format)(this, r->keys));
+ }
}
PaludisEnvironment::~PaludisEnvironment()