From c29727941a6bcbb8daf794d60caee6e51aa6b50f Mon Sep 17 00:00:00 2001 From: mguessan Date: Thu, 6 Jun 2013 22:57:19 +0000 Subject: [PATCH] IMAP: remove additional logging git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2138 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/contribs/rpm/SPECS/davmail.spec | 2 +- src/java/davmail/imap/ImapConnection.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contribs/rpm/SPECS/davmail.spec b/src/contribs/rpm/SPECS/davmail.spec index ae50d8bb..4cd0e594 100644 --- a/src/contribs/rpm/SPECS/davmail.spec +++ b/src/contribs/rpm/SPECS/davmail.spec @@ -3,7 +3,7 @@ %{?!davmail_gid: %define davmail_gid 213} %{?!davrel: %define davrel 4.3.2} -%{?!davsvn: %define davsvn 2137} +%{?!davsvn: %define davsvn 2138} %define davver %{davrel}-%{davsvn} %ifarch i386 i586 i686 %define davarch x86 diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index d4ff8af5..6912dcb0 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -958,7 +958,7 @@ public class ImapConnection extends AbstractConnection { buffer.append(" {").append(baos.size()).append('}'); sendClient(buffer.toString()); // log content if less than 2K - if (LOGGER.isDebugEnabled() /*&& baos.size() < 2048*/) { + if (LOGGER.isDebugEnabled() && baos.size() < 2048) { LOGGER.debug(new String(baos.toByteArray(), "UTF-8")); } os.write(baos.toByteArray());