From 1193b4a06618a0b5f092aedfeb65af37b11fa0e3 Mon Sep 17 00:00:00 2001 From: HÃ¥kon Hallingstad Date: Wed, 5 Feb 2020 17:27:47 +0100 Subject: Reduce access logging Avoids writing access logs in various tests. 1. Disables by-default access logging with Application, since it is used in unit tests. 2. However many tests create additional DeployState which renders this ineffective, and so this PR also explicitly disables access logging in services.xml of some tests. (1) might be unnecessary if we anyway have to do (2) everywhere, but this is not clear to me. --- application/src/main/java/com/yahoo/application/Application.java | 1 + 1 file changed, 1 insertion(+) (limited to 'application/src') diff --git a/application/src/main/java/com/yahoo/application/Application.java b/application/src/main/java/com/yahoo/application/Application.java index d4b1735e4c1..a2c6e84ecb7 100644 --- a/application/src/main/java/com/yahoo/application/Application.java +++ b/application/src/main/java/com/yahoo/application/Application.java @@ -124,6 +124,7 @@ public final class Application implements AutoCloseable { .applicationPackage(FilesApplicationPackage.fromFile(path.toFile(), true)) .modelImporters(modelImporters) .deployLogger((level, s) -> { }) + .accessLoggingEnabledByDefault(false) .build(); return new VespaModel(new NullConfigModelRegistry(), deployState); } catch (IOException | SAXException e) { -- cgit v1.2.3