Skip to content

Commit

Permalink
MBS-9933 remove log spam (#637)
Browse files Browse the repository at this point in the history
* MBS-9933 remove log spam

* Update subprojects/gradle/instrumentation-tests/src/main/kotlin/com/avito/instrumentation/InstrumentationTestsTask.kt

Co-authored-by: Eugene Krivobokov <eugene.krivobokov@gmail.com>

Co-authored-by: Eugene Krivobokov <eugene.krivobokov@gmail.com>
  • Loading branch information
dsvoronin and eugene-krivobokov committed Nov 16, 2020
1 parent fd49b29 commit fd323b1
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,18 +223,14 @@ abstract class InstrumentationTestsTask @Inject constructor(
val reportViewerConfig = reportViewerConfig.orNull
val factories = mutableMapOf<Class<out Report.Factory.Config>, 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()
)
Expand Down

0 comments on commit fd323b1

Please sign in to comment.