You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/network/interceptors/FormattedJsonHttpLogger.kt
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,8 @@ internal class FormattedJsonHttpLogger(
38
38
*/
39
39
@Synchronized
40
40
overridefunlog(message:String) {
41
-
Timber.v(message)
41
+
Timber.v(message.take(20_000))
42
+
if (message.length >20_000) return
42
43
43
44
// Try to log formatted Json only if there is a chance that [message] contains Json.
44
45
// It can be only the case if we log the bodies of Http requests.
0 commit comments