Revision: 8259
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=8259&view=rev
Author:   dnaber
Date:     2012-10-28 15:30:32 +0000 (Sun, 28 Oct 2012)
Log Message:
-----------
more logging for rule creator; close directory

Modified Paths:
--------------
    trunk/ltcommunity/grails-app/services/org/languagetool/SearchService.groovy

Modified: 
trunk/ltcommunity/grails-app/services/org/languagetool/SearchService.groovy
===================================================================
--- trunk/ltcommunity/grails-app/services/org/languagetool/SearchService.groovy 
2012-10-27 13:16:12 UTC (rev 8258)
+++ trunk/ltcommunity/grails-app/services/org/languagetool/SearchService.groovy 
2012-10-28 15:30:32 UTC (rev 8259)
@@ -32,6 +32,7 @@
     def grailsApplication
 
     SearcherResult checkRuleAgainstCorpus(PatternRule patternRule, Language 
language, int maxHits) {
+        log.info("Checking rule against ${language} corpus: 
${patternRule.getElements()}")
         Searcher searcher = new Searcher()
         searcher.setMaxHits(maxHits)
         searcher.setMaxSearchTimeMillis(SEARCH_TIMEOUT_MILLIS)
@@ -46,6 +47,7 @@
                 searcherResult = searcher.findRuleMatchesOnIndex(patternRule, 
language, indexSearcher)
             } finally {
                 indexReader.close()
+                directory.close()
             }
             return searcherResult
         } else {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
Languagetool-commits mailing list
Languagetool-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to