Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

chore(queue): add an informative toString() in SqlQueue #120

Merged
merged 1 commit into from
May 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,5 @@ class QueueProcessor(

@PostConstruct
fun confirmQueueType() =
log.info("Using ${queue.javaClass.simpleName} queue")
log.info("Using queue $queue")
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,12 @@ class SqlQueue(
private val writeRetryBackoffMax = max(sqlRetryProperties.transactions.backoffMs + 50, 100)

init {
log.info("Configured $javaClass queue: $queueName")
log.info("Configured queue $this")
initTables()
}

override fun toString(): String = "SqlQueue(queueName=$sanitizedName, poolName=$poolName)"

override fun readState(): QueueState {
withPool(poolName) {
return doReadState()
Expand Down