-
Notifications
You must be signed in to change notification settings - Fork 731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve crypto log to debug UISI #4507
Conversation
fafb80f
to
feda53b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes. Just some small remarks, also the CI is not happy.
val deviceId = deviceInfo.deviceId | ||
val key = deviceInfo.identityKey() | ||
if (key == null) { | ||
Timber.w("## CRYPTO | Ignoring device (${deviceInfo.userId}|$deviceId) without identity key") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a Timber tag in this file too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -275,7 +285,7 @@ internal class MXMegolmEncryption( | |||
gossipingEventBuffer.add( | |||
Event( | |||
type = EventType.ROOM_KEY, | |||
senderId = this.userId, | |||
senderId = this.myUserId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this.
is not necessary anymore here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -32,6 +33,8 @@ import org.matrix.android.sdk.internal.session.initsync.ProgressReporter | |||
import timber.log.Timber | |||
import javax.inject.Inject | |||
|
|||
private val loggerTag = LoggerTag("MXMegolmEncryption", LoggerTag.CRYPTO) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MXMegolmEncryption
? It's maybe wanted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch (bad copy paste)
Thanks for the update.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update
Update crypto logs to better help debug UISIs