Don't allow Exchange logger to recurse on failure

Bug: 2594331
Change-Id: Ie5de4ac11259e5be30d4bf9812164823b9ca46ae
This commit is contained in:
Marc Blank 2010-04-13 20:34:13 -07:00
parent c07cd159d4
commit c89e1a8616

View File

@ -106,8 +106,12 @@ public class FileLogger {
// If the card is mounted and we can create the writer, retry // If the card is mounted and we can create the writer, retry
LOGGER = new FileLogger(); LOGGER = new FileLogger();
if (sLogWriter != null) { if (sLogWriter != null) {
log("FileLogger", "Exception writing log; recreating..."); try {
log(prefix, str); log("FileLogger", "Exception writing log; recreating...");
log(prefix, str);
} catch (Exception e1) {
// Nothing to do at this point
}
} }
} }
} }