Skip to content

Commit 20075f7

Browse files
committed
debugging, print out the full operation details
1 parent 80dbf09 commit 20075f7

File tree

1 file changed

+6
-2
lines changed
  • OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/operations/impl

1 file changed

+6
-2
lines changed

OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/operations/impl/OperationRepo.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ internal class OperationRepo(
2626
val operation: Operation,
2727
val waiter: WaiterWithValue<Boolean>? = null,
2828
var retries: Int = 0,
29-
)
29+
) {
30+
override fun toString(): String {
31+
return Pair(operation.toString(), retries).toString() + "\n"
32+
}
33+
}
3034

3135
private val executorsMap: Map<String, IOperationExecutor>
3236
private val queue = mutableListOf<OperationQueueItem>()
@@ -105,7 +109,7 @@ internal class OperationRepo(
105109
}
106110

107111
val ops = getNextOps()
108-
Logging.debug("processQueueForever:ops:$ops")
112+
Logging.debug("processQueueForever:ops:\n$ops")
109113

110114
if (ops != null) {
111115
executeOperations(ops)

0 commit comments

Comments
 (0)