Fix logging inside info panel plugin

- Remove log.info on each hover of the JRichTextPane
- Change log.info to log.warn when browser cannot be opened in the
JRichTextPane

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-02-09 00:15:05 +01:00
parent acb2bce8fa
commit 033086f551

View File

@@ -66,7 +66,6 @@ public class JRichTextPane extends JEditorPane
{
linkHandler = e ->
{
log.info(e.toString());
if (HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType()) && e.getURL() != null)
{
if (Desktop.isDesktopSupported())
@@ -77,7 +76,7 @@ public class JRichTextPane extends JEditorPane
}
catch (URISyntaxException | IOException ex)
{
log.info("Error opening link", ex);
log.warn("Error opening link", ex);
}
}
}