Skip to content

Commit

Permalink
- brute force logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshock committed Dec 31, 2024
1 parent ce761d2 commit 277a222
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import cosmos.tx.v1beta1.ServiceOuterClass
import io.provenance.explorer.OBJECT_MAPPER
import io.provenance.explorer.VANILLA_MAPPER
import io.provenance.explorer.config.ExplorerProperties
import io.provenance.explorer.domain.core.logger
import io.provenance.explorer.domain.core.sql.Distinct
import io.provenance.explorer.domain.core.sql.jsonb
import io.provenance.explorer.domain.core.sql.toProcedureObject
Expand Down Expand Up @@ -405,6 +406,8 @@ class TxMessageRecord(id: EntityID<Int>) : IntEntity(id) {
}

private fun findByQueryParams(tqp: TxQueryParams, distinctQuery: List<Expression<*>>?) = transaction {
logger().info("Query Params: $tqp");

var join: ColumnSet = TxMessageTable

if (tqp.msgTypes.isNotEmpty())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class TransactionService(
ibcSrcPort: String? = null,
ibcSrcChannel: String? = null
): PagedResults<TxSummary> {
logger.info("Fetching transactions with address: $address, denom: $denom, module: $module, msgType: $msgType, txHeight: $txHeight, txStatus: $txStatus, count: $count, page: $page, fromDate: $fromDate, toDate: $toDate, nftAddr: $nftAddr, ibcChain: $ibcChain, ibcSrcPort: $ibcSrcPort, ibcSrcChannel: $ibcSrcChannel");
val msgTypes = if (msgType != null) listOf(msgType) else (module?.getValuesPlusAddtnl() ?: listOf())
val msgTypeIds = transaction { TxMessageTypeRecord.findByType(msgTypes).map { it.id.value } }.toList()
val addr = transaction { address?.getAddressType(valService.getActiveSet()) }
Expand Down

0 comments on commit 277a222

Please sign in to comment.