1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-14 01:43:00 +00:00

Replace stacktrace with timber log

This commit is contained in:
Abel García de Prada
2020-01-16 13:00:12 +01:00
committed by davigonz
parent 9beb25d019
commit 11a2ec1d3e
9 changed files with 12 additions and 35 deletions
@@ -64,7 +64,7 @@ public class AccountUtils {
webDavUrlForAccount = getBaseUrlForAccount(context, account) + OwnCloudClient.WEBDAV_FILES_PATH_4_0
+ ownCloudCredentials.getUsername();
} catch (OperationCanceledException | AuthenticatorException | IOException e) {
e.printStackTrace();
Timber.e(e);
}
return webDavUrlForAccount;
@@ -31,8 +31,6 @@ import okhttp3.internal.Util;
public class OwnCloudBasicCredentials implements OwnCloudCredentials {
private static final String TAG = OwnCloudCredentials.class.getSimpleName();
private String mUsername;
private String mPassword;
@@ -33,8 +33,6 @@ import java.util.Map;
public class OAuth2QueryParser {
private static final String TAG = OAuth2QueryParser.class.getName();
private Map<String, String> mOAuth2ParsedAuthorizationResponse;
public OAuth2QueryParser() {
@@ -43,11 +43,8 @@ import java.security.cert.X509Certificate;
*/
public class AdvancedX509TrustManager implements X509TrustManager {
private static final String TAG = AdvancedX509TrustManager.class.getSimpleName();
private X509TrustManager mStandardTrustManager;
private KeyStore mKnownServersKeyStore;
/**
* Constructor for AdvancedX509TrustManager
*
@@ -24,13 +24,12 @@
package com.owncloud.android.lib.common.network;
import android.util.Log;
import okhttp3.MediaType;
import okhttp3.RequestBody;
import okio.BufferedSink;
import okio.Okio;
import okio.Source;
import timber.log.Timber;
import java.io.File;
import java.util.Collection;
@@ -45,8 +44,6 @@ import java.util.Set;
*/
public class FileRequestBody extends RequestBody implements ProgressiveDataTransferer {
private static final String TAG = FileRequestBody.class.getSimpleName();
protected File mFile;
private MediaType mContentType;
final Set<OnDatatransferProgressListener> mDataTransferListeners = new HashSet<>();
@@ -87,11 +84,10 @@ public class FileRequestBody extends RequestBody implements ProgressiveDataTrans
}
}
Log.d(TAG, "File with name " + mFile.getName() + " and size " + mFile.length() +
" written in request body");
Timber.d("File with name " + mFile.getName() + " and size " + mFile.length() + " written in request body");
} catch (Exception e) {
e.printStackTrace();
Timber.e(e);
}
}