From fd323b184b687082de011f232e22112321e7180a Mon Sep 17 00:00:00 2001 From: Dmitriy Voronin Date: Mon, 16 Nov 2020 21:06:16 +0300 Subject: [PATCH] MBS-9933 remove log spam (#637) * MBS-9933 remove log spam * Update subprojects/gradle/instrumentation-tests/src/main/kotlin/com/avito/instrumentation/InstrumentationTestsTask.kt Co-authored-by: Eugene Krivobokov Co-authored-by: Eugene Krivobokov --- .../instrumentation/InstrumentationTestsTask.kt | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/subprojects/gradle/instrumentation-tests/src/main/kotlin/com/avito/instrumentation/InstrumentationTestsTask.kt b/subprojects/gradle/instrumentation-tests/src/main/kotlin/com/avito/instrumentation/InstrumentationTestsTask.kt index fcdaf33b70..86e835d1a6 100644 --- a/subprojects/gradle/instrumentation-tests/src/main/kotlin/com/avito/instrumentation/InstrumentationTestsTask.kt +++ b/subprojects/gradle/instrumentation-tests/src/main/kotlin/com/avito/instrumentation/InstrumentationTestsTask.kt @@ -223,18 +223,14 @@ abstract class InstrumentationTestsTask @Inject constructor( val reportViewerConfig = reportViewerConfig.orNull val factories = mutableMapOf, Report.Factory>() if (reportViewerConfig != null) { - factories.put( - Report.Factory.Config.ReportViewerCoordinates::class.java, Report.Factory.ReportViewerFactory( - reportApiUrl = reportViewerConfig.reportApiUrl, - reportApiFallbackUrl = reportViewerConfig.reportApiFallbackUrl, - ciLogger = ciLogger, - verboseHttp = true - ) + factories[Report.Factory.Config.ReportViewerCoordinates::class.java] = Report.Factory.ReportViewerFactory( + reportApiUrl = reportViewerConfig.reportApiUrl, + reportApiFallbackUrl = reportViewerConfig.reportApiFallbackUrl, + ciLogger = ciLogger, + verboseHttp = false // do not enable for production, generates a ton of logs ) } - factories.put( - Report.Factory.Config.InMemory::class.java, Report.Factory.InMemoryReportFactory() - ) + factories[Report.Factory.Config.InMemory::class.java] = Report.Factory.InMemoryReportFactory() return Report.Factory.StrategyFactory( factories = factories.toMap() )