Skip to content

Commit 13d64af

Browse files
lint: Use android.util.Log instead of print stack trace
Signed-off-by: Stefan Niedermann <info@niedermann.it>
1 parent d1c851b commit 13d64af

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎lib/src/main/java/com/nextcloud/android/sso/ImportSsoAccountActivity.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
4646
UiExceptionManager.showDialogForException(this, ssoException, t -> finish());
4747

4848
} catch (Throwable throwable) {
49-
throwable.printStackTrace();
49+
Log.e(TAG, throwable.getMessage(), throwable);
5050
finish();
5151
}
5252
}
@@ -60,7 +60,7 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
6060
AccountImporter.onRequestPermissionsResult(requestCode, permissions, grantResults, this, null, t -> finish());
6161

6262
} catch (Throwable throwable) {
63-
throwable.printStackTrace();
63+
Log.e(TAG, throwable.getMessage(), throwable);
6464
finish();
6565
}
6666
}
@@ -83,7 +83,7 @@ protected void onActivityResult(int requestCode, int resultCode, @Nullable Inten
8383
finish();
8484

8585
} catch (Throwable t) {
86-
t.printStackTrace();
86+
Log.e(TAG, t.getMessage(), t);
8787
finish();
8888
}
8989
}

0 commit comments

Comments
 (0)