From: Otto Moerbeek Date: Mon, 4 Jul 2022 13:32:13 +0000 (+0200) Subject: Avoid log spam in tests X-Git-Tag: auth-4.8.0-alpha0~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11751%2Fhead;p=thirdparty%2Fpdns.git Avoid log spam in tests --- diff --git a/pdns/recursordist/test-rec-zonetocache.cc b/pdns/recursordist/test-rec-zonetocache.cc index d1256ac2f5..412a42db03 100644 --- a/pdns/recursordist/test-rec-zonetocache.cc +++ b/pdns/recursordist/test-rec-zonetocache.cc @@ -81,7 +81,6 @@ static void zonemdTest(const std::string& lines, pdns::ZoneMD::Config mode, pdns RecZoneToCache::ZoneToCache(config, state); unlink(temp); - g_recCache->doDump(2); BOOST_CHECK_EQUAL(g_recCache->size(), expectedCacheSize); if (expectedCacheSize > 0) { @@ -100,6 +99,8 @@ BOOST_AUTO_TEST_CASE(test_zonetocache) { std::unique_ptr sr; initSR(sr, true); + g_log.setLoglevel(Logger::Critical); + g_log.toConsole(Logger::Critical); setDNSSECValidation(sr, DNSSECMode::ValidateAll); zonemdTest(zone, pdns::ZoneMD::Config::Ignore, pdns::ZoneMD::Config::Ignore, 17U);