From 89352e352ee41f345dcc6987ebb0a91b4a4c64a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr> Date: Mon, 4 Feb 2008 15:04:37 +0000 Subject: [PATCH] - disabled logging below errors --- src/fr/inrialpes/exmo/align/ling/JWNLDistances.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/fr/inrialpes/exmo/align/ling/JWNLDistances.java b/src/fr/inrialpes/exmo/align/ling/JWNLDistances.java index 66edafc1..30355282 100644 --- a/src/fr/inrialpes/exmo/align/ling/JWNLDistances.java +++ b/src/fr/inrialpes/exmo/align/ling/JWNLDistances.java @@ -2,7 +2,7 @@ * $Id$ * * Copyright (C) University of Montréal, 2004-2005 - * Copyright (C) INRIA Rhône-Alpes, 2004-2005, 2007 + * Copyright (C) INRIA Rhône-Alpes, 2004-2005, 2007-2008 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,6 +34,9 @@ import java.util.Iterator; import java.util.List; import java.util.Vector; +import org.apache.log4j.Logger; +import org.apache.log4j.Level; + import net.didion.jwnl.JWNL; import net.didion.jwnl.JWNLException; import net.didion.jwnl.data.IndexWord; @@ -115,7 +118,9 @@ public class JWNLDistances { // Sorry but this initialize wants to read a stream pptySource = new ByteArrayInputStream( properties.getBytes() ); } - try { JWNL.initialize( pptySource ); } + try { + Logger.getLogger("net.didion.jwnl").setLevel(Level.ERROR); + JWNL.initialize( pptySource ); } catch ( JWNLException e ) { throw new AlignmentException( "Cannot initialize JWNL (WordNet)", e ); } -- GitLab