commit | 468fbe5cbcc8c47dca490a571f52e52c79683c40 | [log] [tgz] |
---|---|---|
author | Marcin Czech <maczech@gmail.com> | Wed Apr 15 15:49:16 2020 +0200 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Tue May 12 11:51:45 2020 +0100 |
tree | 9dbaf1fa9fb7e456cd584c4bd14055f1ec2d623e | |
parent | 10601186a398892eb1088f7f61a205ef4a46fb55 [diff] |
Mute logging for missing fetch param in remote section Pull-replication plugin can coexist with replication plugin. For setups with a large number of remote sections logging every remote section without fetch param cause a lot of noise in the logs during gerrit startup. Feature: Issue 12560 Change-Id: I1cfcff64e39fd171bf71fcb5456f2d47f7c40d15
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/pull/SourceConfigParser.java b/src/main/java/com/googlesource/gerrit/plugins/replication/pull/SourceConfigParser.java index e7400ec..6dfed44 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/pull/SourceConfigParser.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/pull/SourceConfigParser.java
@@ -79,7 +79,7 @@ if (!remoteConfig.getFetchRefSpecs().isEmpty()) { result.add(remoteConfig); } else { - logger.atWarning().log( + logger.atFine().log( "Skip loading of remote [remote \"%s\"], since it has no 'fetch' configuration", name); }