Browse Source

Added exception logging

Jorge Antonio Diaz-Benito Soriano 9 years ago
parent
commit
1508e99e9a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/com/owncloud/android/ui/preview/PreviewTextFragment.java

+ 2 - 0
src/com/owncloud/android/ui/preview/PreviewTextFragment.java

@@ -158,12 +158,14 @@ public class PreviewTextFragment extends FileFragment {
                 IOException exc = sc.ioException();
                 if (exc != null) throw exc;
             } catch (IOException e) {
+                Log_OC.e(TAG, e.getMessage(), e);
                 finish();
             } finally {
                 if (inputStream != null) {
                     try {
                         inputStream.close();
                     } catch (IOException e) {
+                        Log_OC.e(TAG, e.getMessage(), e);
                         finish();
                     }
                 }