mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Update logcat library
This commit is contained in:
parent
c0a11c5d0b
commit
073a91c580
@ -7,7 +7,7 @@ dependencies {
|
|||||||
api 'com.squareup.okhttp3:okhttp:3.12.0'
|
api 'com.squareup.okhttp3:okhttp:3.12.0'
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
|
||||||
api 'com.gitlab.ownclouders:dav4android:oc_support_1.0.1'
|
api 'com.gitlab.ownclouders:dav4android:oc_support_1.0.1'
|
||||||
api 'com.github.hannesa2:Logcat:1.5.6'
|
api 'com.github.hannesa2:Logcat:1.6.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
allOpen {
|
allOpen {
|
||||||
|
@ -161,7 +161,7 @@ public class OwnCloudClient extends HttpClient {
|
|||||||
// Header to allow tracing requests in apache and ownCloud logs
|
// Header to allow tracing requests in apache and ownCloud logs
|
||||||
addHeaderForAllRequests(OC_X_REQUEST_ID, requestId);
|
addHeaderForAllRequests(OC_X_REQUEST_ID, requestId);
|
||||||
|
|
||||||
Timber.d("Executing " + method.getClass().getSimpleName() + " in request with id " + requestId);
|
Timber.d("Executing in request with id %s", requestId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public RedirectionPath followRedirection(HttpBaseMethod method) throws Exception {
|
public RedirectionPath followRedirection(HttpBaseMethod method) throws Exception {
|
||||||
|
@ -13,7 +13,7 @@ object LoggingHelper {
|
|||||||
}
|
}
|
||||||
if (!directory.exists())
|
if (!directory.exists())
|
||||||
directory.mkdirs()
|
directory.mkdirs()
|
||||||
Timber.plant(FileLoggingTree(directory, filename = storagePath, delegator = Timber::class.java))
|
Timber.plant(FileLoggingTree(directory, filename = storagePath))
|
||||||
}
|
}
|
||||||
|
|
||||||
fun stopLogging() {
|
fun stopLogging() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user