diff options
author | Jon Bratseth <bratseth@vespa.ai> | 2023-07-31 14:15:39 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@vespa.ai> | 2023-07-31 14:15:39 +0200 |
commit | d1810e7868dc7f729745a98af66ec2b25951a8a6 (patch) | |
tree | 23330f7af9722fc2b7af5a2695d5383d365aa85e /lucene-linguistics | |
parent | 10619eaa43cdc3fda399bd4b5b0de1fd0a891842 (diff) |
Don't log when throwing
Diffstat (limited to 'lucene-linguistics')
-rw-r--r-- | lucene-linguistics/src/main/java/com/yahoo/language/lucene/AnalyzerFactory.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lucene-linguistics/src/main/java/com/yahoo/language/lucene/AnalyzerFactory.java b/lucene-linguistics/src/main/java/com/yahoo/language/lucene/AnalyzerFactory.java index 6f330f12417..b71d06a2c3f 100644 --- a/lucene-linguistics/src/main/java/com/yahoo/language/lucene/AnalyzerFactory.java +++ b/lucene-linguistics/src/main/java/com/yahoo/language/lucene/AnalyzerFactory.java @@ -106,13 +106,8 @@ class AnalyzerFactory { // Failing to set up the Analyzer, should blow up during testing and VAP should not be deployed. // Most likely cause for problems is that a specified resource is not available in VAP. // Unit tests should catch such problems and prevent the VAP being deployed. - log.severe("Failed to build analyzer: '" - + analyzerKey - + "', with configuration: '" - + config.analysis(analyzerKey) - + "' with exception: '" - + e.getMessage() + "'" ); - throw new RuntimeException(e); + throw new RuntimeException("Failed to build analyzer: '" + analyzerKey + + "', with configuration: '" + config.analysis(analyzerKey), e); } } |