Skip to content

Commit

Permalink
Merge #1605: Fix OrderbookWatch.on_order_seen() exception debug mes…
Browse files Browse the repository at this point in the history
…sages

bfc618a Fix OrderbookWatch.on_order_seen() exception debug messages (Kristaps Kaupe)

Pull request description:

  You cannot concatenate `str` with `int`. Found while working on #1602.

ACKs for top commit:
  AdamISZ:
    utACK bfc618a

Tree-SHA512: 34e2181bd91c856348fee88233f76d25a51d1626d1ad3523e861caa3ba84c248371de874841038381839efa4816d58d2d0933628f79bcf7d64295483c7959dfc
  • Loading branch information
kristapsk committed Nov 26, 2023
2 parents 3e09421 + bfc618a commit fe5859f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jmdaemon/orderbookwatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ def on_order_seen(self, counterparty, oid, ordertype, minsize, maxsize,
(counterparty, oid, ordertype, minsize, maxsize, txfee,
str(Decimal(cjfee)))) # any parseable Decimal is a valid cjfee
except InvalidOperation:
log.debug("Got invalid cjfee: " + cjfee + " from " + counterparty)
log.debug("Got invalid cjfee: " + str(cjfee) + " from " + counterparty)
except Exception as e:
log.debug("Error parsing order " + oid + " from " + counterparty)
log.debug("Error parsing order " + str(oid) + " from " + counterparty)
log.debug("Exception was: " + repr(e))
finally:
self.dblock.release()
Expand Down

0 comments on commit fe5859f

Please sign in to comment.