Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
p1gp1g committed Mar 31, 2024
1 parent 9d4e269 commit 532052b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ class UnifiedPushRefreshJob private constructor(parameters: Parameters) : BaseJo

// Else : we try to use UnifiedPush
UnifiedPushHelper.checkDistributorPresence(context)
when (val status = SignalStore.unifiedpush().status) {
val status = SignalStore.unifiedpush().status
Log.d(TAG, "UnifiedPush Status: $status")
when (status) {
// Should not occur
UnifiedPushStatus.DISABLED,
UnifiedPushStatus.UNKNOWN -> Log.e(TAG, "UnifiedPush setup should not be in this state here : $status.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ object MollySocketRequest {
return resp.mollySocket.status ?: RegistrationStatus.INTERNAL_ERROR
}
} catch (e: Exception) {
Log.d(TAG, "Exception: $e")
Log.w(TAG, "Exception: $e", Throwable())
return RegistrationStatus.INTERNAL_ERROR
}
}
Expand Down

0 comments on commit 532052b

Please sign in to comment.