lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpoersc...@apache.org
Subject [2/2] lucene-solr:master: SOLR-12557: standardise solr/core (private) logger names
Date Tue, 31 Jul 2018 16:23:36 GMT
SOLR-12557: standardise solr/core (private) logger names


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/6fbaf698
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/6fbaf698
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/6fbaf698

Branch: refs/heads/master
Commit: 6fbaf698b9111bcc7eb579d35da46eb98ebe668b
Parents: 9262ed7
Author: Christine Poerschke <cpoerschke@apache.org>
Authored: Tue Jul 31 17:00:11 2018 +0100
Committer: Christine Poerschke <cpoerschke@apache.org>
Committed: Tue Jul 31 17:00:11 2018 +0100

----------------------------------------------------------------------
 lucene/tools/src/groovy/check-source-patterns.groovy | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/6fbaf698/lucene/tools/src/groovy/check-source-patterns.groovy
----------------------------------------------------------------------
diff --git a/lucene/tools/src/groovy/check-source-patterns.groovy b/lucene/tools/src/groovy/check-source-patterns.groovy
index 63541c2..d7af361 100644
--- a/lucene/tools/src/groovy/check-source-patterns.groovy
+++ b/lucene/tools/src/groovy/check-source-patterns.groovy
@@ -173,6 +173,9 @@ ant.fileScanner{
       if (f.toString().contains('solr/contrib') && !validLoggerNamePattern.matcher(text).find())
{
         reportViolation(f, 'invalid logger name [not log or LOG]');
       }
+      if (f.toString().contains('solr/core') && !validLoggerNamePattern.matcher(text).find())
{
+        reportViolation(f, 'invalid logger name [not log or LOG]');
+      }
     }
     checkLicenseHeaderPrecedes(f, 'package', packagePattern, javaCommentPattern, text, ratDocument);
     if (f.name.contains("Test")) {


Mime
View raw message