You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Jonathan Valliere (JIRA)" <ji...@apache.org> on 2019/02/03 18:38:00 UTC
[jira] [Assigned] (DIRMINA-1100) printStackTrace in
AbstractPollingIoProcessor:1109
[ https://issues.apache.org/jira/browse/DIRMINA-1100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Valliere reassigned DIRMINA-1100:
------------------------------------------
Assignee: Jonathan Valliere
> printStackTrace in AbstractPollingIoProcessor:1109
> --------------------------------------------------
>
> Key: DIRMINA-1100
> URL: https://issues.apache.org/jira/browse/DIRMINA-1100
> Project: MINA
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0.19
> Reporter: Michael Kunze
> Assignee: Jonathan Valliere
> Priority: Minor
>
> I'm using a SMTP server based on mina and i seem to run into this catch block in AbstractPollingIoProcessor:1109
> {code:java}
> try {
> localWrittenBytes = write(session, buf, length);
> } catch (IOException ioe) {
> ioe.printStackTrace();
> // We have had an issue while trying to send data to the
> // peer : let's close the session.
> buf.free();
> session.closeNow();
> this.removeNow(session);
> return 0;
> }
> {code}
> Well on the internet there all kinds of crooked smtp clients around, so i see the exception quite often. What i don't like that is printed on standard error instead of using the embedded logging.
> Is it possible to change the line:
> {code:java}
> ioe.printStackTrace();
> {code}
> into
> {code:java}
> LOG.error("Issue while trying to send data to the peer. Closing connection.", ioe);
> {code}
>
> That way i can decide if i care about it and maybe silence that one.
>
> Thanks!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)