# # # patch "mtn-sanity.cc" # from [7267ac5add37473eed1435b771905fb820f11c46] # to [2b00557214de222db5c0a3642f3cc37d862f8d11] # # patch "sanity.cc" # from [1da70ae1d4d0057201882a7f7f1b68b33f6303a1] # to [c727e0fe2a4eda4b541232b2c55a12b175e59900] # # patch "tester.cc" # from [3c883424385bb3a897f0c382910b392875eab3f4] # to [ccf6123813479ece20d01861e7a74e0890bfd3c0] # ============================================================ --- mtn-sanity.cc 7267ac5add37473eed1435b771905fb820f11c46 +++ mtn-sanity.cc 2b00557214de222db5c0a3642f3cc37d862f8d11 @@ -26,7 +26,10 @@ mtn_sanity::inform_log(std::string const void mtn_sanity::inform_log(std::string const &msg) { - ui.inform(msg); + if (debug_p()) + { + ui.inform(msg); + } } void ============================================================ --- sanity.cc 1da70ae1d4d0057201882a7f7f1b68b33f6303a1 +++ sanity.cc c727e0fe2a4eda4b541232b2c55a12b175e59900 @@ -318,12 +318,10 @@ sanity::generic_failure(char const * exp if (!imp) throw std::logic_error("sanity::generic_failure occured " "before sanity::initialize"); - if (imp->debug) - { - log(FL("%s:%d: detected %s error, '%s' violated") - % file % line % origin::type_to_string(caused_by) % expr, - file, line); - } + + log(FL("%s:%d: detected %s error, '%s' violated") + % file % line % origin::type_to_string(caused_by) % expr, + file, line); gasp(); string prefix; ============================================================ --- tester.cc 3c883424385bb3a897f0c382910b392875eab3f4 +++ tester.cc ccf6123813479ece20d01861e7a74e0890bfd3c0 @@ -29,7 +29,7 @@ struct tester_sanity : public sanity struct tester_sanity : public sanity { void inform_log(std::string const &msg) - {fprintf(stdout, "%s", msg.c_str());} + {/*fprintf(stdout, "%s", msg.c_str());*/} void inform_message(std::string const &msg) {fprintf(stdout, "%s", msg.c_str());}; void inform_warning(std::string const &msg)