Loading src/com/owncloud/android/lib/common/utils/Log_OC.java +18 −5 Original line number Diff line number Diff line Loading @@ -100,6 +100,14 @@ public class Log_OC { } catch (IOException e) { e.printStackTrace(); } finally { if(mBuf != null) { try { mBuf.close(); } catch(IOException e) { e.printStackTrace(); } } } } Loading Loading @@ -159,10 +167,15 @@ public class Log_OC { mBuf.newLine(); mBuf.write(text); mBuf.newLine(); } catch (IOException e) { e.printStackTrace(); } finally { try { mBuf.close(); } catch (IOException e) { e.printStackTrace(); } } // Check if current log file size is bigger than the max file size defined if (mLogFile.length() > MAX_FILE_SIZE) { Loading Loading
src/com/owncloud/android/lib/common/utils/Log_OC.java +18 −5 Original line number Diff line number Diff line Loading @@ -100,6 +100,14 @@ public class Log_OC { } catch (IOException e) { e.printStackTrace(); } finally { if(mBuf != null) { try { mBuf.close(); } catch(IOException e) { e.printStackTrace(); } } } } Loading Loading @@ -159,10 +167,15 @@ public class Log_OC { mBuf.newLine(); mBuf.write(text); mBuf.newLine(); } catch (IOException e) { e.printStackTrace(); } finally { try { mBuf.close(); } catch (IOException e) { e.printStackTrace(); } } // Check if current log file size is bigger than the max file size defined if (mLogFile.length() > MAX_FILE_SIZE) { Loading