diff options
author | Håkon Hallingstad <hakon@verizonmedia.com> | 2020-02-05 17:27:47 +0100 |
---|---|---|
committer | Håkon Hallingstad <hakon@verizonmedia.com> | 2020-02-05 17:27:47 +0100 |
commit | 1193b4a06618a0b5f092aedfeb65af37b11fa0e3 (patch) | |
tree | 5d44af9fc0798ae65c0107f4aeee2596943ad5a1 /application | |
parent | d05911599c0b9706d54ff7819349cbcadd30ed0a (diff) |
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.
Diffstat (limited to 'application')
-rw-r--r-- | application/src/main/java/com/yahoo/application/Application.java | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |