Merge "Fix a privacy violating log" into ub-mail-master

This commit is contained in:
Martin Hibdon 2014-01-08 18:07:38 +00:00 committed by Android (Google) Code Review
commit 3f1d67533b

View File

@ -272,7 +272,7 @@ class ImapConnection {
*/ */
String sendCommand(String command, boolean sensitive) String sendCommand(String command, boolean sensitive)
throws MessagingException, IOException { throws MessagingException, IOException {
LogUtils.d(Logging.LOG_TAG, "sendCommand %s", command); LogUtils.d(Logging.LOG_TAG, "sendCommand %s", (sensitive ? IMAP_REDACTED_LOG : command));
open(); open();
String tag = Integer.toString(mNextCommandTag.incrementAndGet()); String tag = Integer.toString(mNextCommandTag.incrementAndGet());
String commandToSend = tag + " " + command; String commandToSend = tag + " " + command;