From c89e1a8616ebcec32a790b9273fcb83635d71b31 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Tue, 13 Apr 2010 20:34:13 -0700 Subject: [PATCH] Don't allow Exchange logger to recurse on failure Bug: 2594331 Change-Id: Ie5de4ac11259e5be30d4bf9812164823b9ca46ae --- src/com/android/exchange/utility/FileLogger.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/com/android/exchange/utility/FileLogger.java b/src/com/android/exchange/utility/FileLogger.java index e978f5de6..bb1715188 100644 --- a/src/com/android/exchange/utility/FileLogger.java +++ b/src/com/android/exchange/utility/FileLogger.java @@ -106,8 +106,12 @@ public class FileLogger { // If the card is mounted and we can create the writer, retry LOGGER = new FileLogger(); if (sLogWriter != null) { - log("FileLogger", "Exception writing log; recreating..."); - log(prefix, str); + try { + log("FileLogger", "Exception writing log; recreating..."); + log(prefix, str); + } catch (Exception e1) { + // Nothing to do at this point + } } } }