Skip to content

Commit 685e452

Browse files
committed
Add API name when logging server error (#1964)
(cherry picked from commit 2ee175e)
1 parent a741d20 commit 685e452

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/java/org/thoughtcrime/securesms/api/server

1 file changed

+1
-1
lines changed

app/src/main/java/org/thoughtcrime/securesms/api/server/ServerApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ abstract class ServerApi<ResponseType>(
4545
ctx = failureContext,
4646
)
4747

48-
Log.d("ServerApi", "Network error for a Server endpoint ($baseUrl), with status:${response.statusCode} - error: $error")
48+
Log.d("ServerApi", "Network error from ${this.javaClass.simpleName} for a Server endpoint ($baseUrl), with status:${response.statusCode} - error: $error")
4949

5050
executorContext.set(
5151
key = ServerClientFailureContextKey,

0 commit comments

Comments
 (0)