Ticket #622: noisy-log-messages.patch

File noisy-log-messages.patch, 2.6 kB (added by ciaranm, 5 months ago)
  • paludis/repositories/e/eapi.cc

    diff --git a/paludis/repositories/e/eapi.cc b/paludis/repositories/e/eapi.cc
    index aa8a4b4..66a29c1 100644
    a b  
    3636#include <paludis/util/wrapped_output_iterator.hh> 
    3737#include <paludis/util/kc.hh> 
    3838#include <paludis/util/hashes.hh> 
     39#include <paludis/util/log.hh> 
    3940#include <tr1/unordered_map> 
    4041#include <map> 
    4142#include <vector> 
     
    268269 
    269270                                            )))); 
    270271 
     272                Log::get_instance()->message("GREPFORTHIS", ll_warning, lc_context) 
     273                    << "We just did EAPI '" << ((*eapi)[k::name()]) << "'"; 
     274                Log::get_instance()->message("GREPFORTHIS", ll_warning, lc_context) 
     275                    << "k.get(\"unpack_unrecognised_is_fatal\") is '" << k.get("unpack_unrecognised_is_fatal") << "'"; 
     276                Log::get_instance()->message("GREPFORTHIS", ll_warning, lc_context) 
     277                    << "destringify<bool>(k.get(\"unpack_unrecognised_is_fatal\")) is '" << 
     278                    destringify<bool>(k.get("unpack_unrecognised_is_fatal")) << "'"; 
     279                Log::get_instance()->message("GREPFORTHIS", ll_warning, lc_context) 
     280                    << "unpack_unrecognised_is_fatal is '" << 
     281                    (*(*eapi)[k::supported()])[k::tools_options()].unpack_unrecognised_is_fatal << "'"; 
     282 
    271283                tokenise_whitespace(k.get("restrict_fetch"), 
    272284                        (*(*eapi)[k::supported()])[k::ebuild_options()].restrict_fetch->inserter()); 
    273285                tokenise_whitespace(k.get("restrict_mirror"), 
  • paludis/repositories/e/ebuild.cc

    diff --git a/paludis/repositories/e/ebuild.cc b/paludis/repositories/e/ebuild.cc
    index 646cb3c..c3a42cd 100644
    a b  
    110110    std::tr1::shared_ptr<const FSEntrySequence> fetchers_dirs(params[k::environment()]->fetchers_dirs()); 
    111111    std::tr1::shared_ptr<const FSEntrySequence> hook_dirs(params[k::environment()]->hook_dirs()); 
    112112 
     113 
     114    Log::get_instance()->message("GREPFORTHIS", ll_warning, lc_context) 
     115        << "EAPI is '" << (*params[k::package_id()]->eapi())[k::name()] << "'"; 
     116    Log::get_instance()->message("GREPFORTHIS", ll_warning, lc_context) 
     117        << "unpack_unrecognised_is_fatal is '" << 
     118        (*(*params[k::package_id()]->eapi())[k::supported()])[k::tools_options()].unpack_unrecognised_is_fatal << "'"; 
     119 
    113120    cmd = extend_command(cmd 
    114121            .with_setenv("P", stringify(params[k::package_id()]->name().package) + "-" + 
    115122                stringify(params[k::package_id()]->version().remove_revision()))