[locale] Improve logging in tests

This commit is contained in:
Adriaan de Groot 2020-04-14 16:24:56 +02:00
parent da440256d9
commit a2a10d14b6

View File

@ -84,6 +84,9 @@ LocaleTests::testSplitLocaleConfiguration()
void void
LocaleTests::testTZImages() LocaleTests::testTZImages()
{ {
// This test messes around with log-levels a lot so
// that it produces useful output (e.g. listing the problems,
// not every check it ever does).
Logger::setupLogLevel( Logger::LOGDEBUG ); Logger::setupLogLevel( Logger::LOGDEBUG );
// Number of zone images // Number of zone images
@ -118,6 +121,7 @@ LocaleTests::testTZImages()
const TZRegion* region = dynamic_cast< const TZRegion* >( pr ); const TZRegion* region = dynamic_cast< const TZRegion* >( pr );
QVERIFY( region ); QVERIFY( region );
Logger::setupLogLevel( Logger::LOGDEBUG );
cDebug() << "Region" << region->region() << "zones #" << region->zones().count(); cDebug() << "Region" << region->region() << "zones #" << region->zones().count();
Logger::setupLogLevel( Logger::LOGERROR ); Logger::setupLogLevel( Logger::LOGERROR );