clean log level

This commit is contained in:
Valere 2022-03-01 19:16:37 +01:00
parent 6546f98858
commit 714e1d79b7
2 changed files with 3 additions and 3 deletions

View File

@ -149,7 +149,7 @@ internal class EventDecryptor @Inject constructor(
// handle wedged devices // handle wedged devices
// Some olm decryption have failed and some device are wedged // Some olm decryption have failed and some device are wedged
// we should force start a new session for those // we should force start a new session for those
Timber.tag(loggerTag.value).d("Unwedging: ${wedgedDevices.size} are wedged") Timber.tag(loggerTag.value).v("Unwedging: ${wedgedDevices.size} are wedged")
// get the one that should be retried according to rate limit // get the one that should be retried according to rate limit
val now = System.currentTimeMillis() val now = System.currentTimeMillis()
val toUnwedge = wedgedDevices.filter { val toUnwedge = wedgedDevices.filter {
@ -164,7 +164,7 @@ internal class EventDecryptor @Inject constructor(
} }
if (toUnwedge.isEmpty()) { if (toUnwedge.isEmpty()) {
Timber.tag(loggerTag.value).d("Nothing to unwedge") Timber.tag(loggerTag.value).v("Nothing to unwedge")
return return
} }
Timber.tag(loggerTag.value).d("Unwedging, trying to create new session for ${toUnwedge.size} devices") Timber.tag(loggerTag.value).d("Unwedging, trying to create new session for ${toUnwedge.size} devices")

View File

@ -909,7 +909,7 @@ internal class MXOlmDevice @Inject constructor(
return holder return holder
} }
} else { } else {
Timber.tag(loggerTag.value).w("## getInboundGroupSession() : Cannot retrieve inbound group session $sessionId") Timber.tag(loggerTag.value).w("## getInboundGroupSession() : UISI $sessionId")
throw MXCryptoError.Base(MXCryptoError.ErrorType.UNKNOWN_INBOUND_SESSION_ID, MXCryptoError.UNKNOWN_INBOUND_SESSION_ID_REASON) throw MXCryptoError.Base(MXCryptoError.ErrorType.UNKNOWN_INBOUND_SESSION_ID, MXCryptoError.UNKNOWN_INBOUND_SESSION_ID_REASON)
} }
} }