Skip to content

Commit

Permalink
Change loglevel to error in TransactionHandler _locallyConfirmTransac…
Browse files Browse the repository at this point in the history
…tion (#7878)
  • Loading branch information
dharit-tan authored Mar 19, 2024
1 parent aeed7a3 commit 2f17f53
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/libs/src/services/solana/transactionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export class TransactionHandler {
txid = await sendRawTransaction()
} catch (e) {
// Rarely, this intiial send will fail
logger.warn(`transactionHandler: Initial send failed: ${e}`)
logger.error(`transactionHandler: Initial send failed: ${e}`)
let errorCode = null
let error = null
if (e instanceof Error) {
Expand All @@ -312,7 +312,7 @@ export class TransactionHandler {
try {
sendRawTransaction()
} catch (e) {
logger.warn(
logger.error(
`transactionHandler: error in send loop: ${e} for txId ${txid}`
)
}
Expand All @@ -336,7 +336,7 @@ export class TransactionHandler {
errorCode: null
}
} catch (e) {
logger.warn(
logger.error(
`transactionHandler: error in awaitTransactionSignature: ${JSON.stringify(
e
)}, ${txid}`
Expand Down Expand Up @@ -368,7 +368,7 @@ export class TransactionHandler {
}
done = true
const message = `transactionHandler: Timed out in await, ${txid}`
logger.warn(message)
logger.error(message)
reject(new Error(message))
}, this.retryTimeoutMs)

Expand All @@ -381,7 +381,7 @@ export class TransactionHandler {
done = true
if (result.err) {
const err = JSON.stringify(result.err)
logger.warn(
logger.error(
`transactionHandler: Error in onSignature ${txid}, ${err}`
)
reject(new Error(err))
Expand Down

0 comments on commit 2f17f53

Please sign in to comment.