From 7860fe1a36b0e63113f63154babfab6ec037730b Mon Sep 17 00:00:00 2001 From: AdamISZ Date: Sat, 21 Apr 2018 17:32:55 +0200 Subject: [PATCH] promote insufficient liquidity error message to warning command line taker-info-callback is info level log message. --- jmclient/jmclient/support.py | 2 +- jmclient/jmclient/taker.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jmclient/jmclient/support.py b/jmclient/jmclient/support.py index 42d888d..7020d4f 100644 --- a/jmclient/jmclient/support.py +++ b/jmclient/jmclient/support.py @@ -221,7 +221,7 @@ def choose_orders(offers, cj_amount, n, chooseOrdersBy, ignored_makers=None, counterparties = set([o['counterparty'] for o in orders]) if n > len(counterparties): - log.debug(('ERROR not enough liquidity in the orderbook n=%d ' + log.warn(('ERROR not enough liquidity in the orderbook n=%d ' 'suitable-counterparties=%d amount=%d totalorders=%d') % (n, len(counterparties), cj_amount, len(orders))) # TODO handle not enough liquidity better, maybe an Exception diff --git a/jmclient/jmclient/taker.py b/jmclient/jmclient/taker.py index b48fb2d..ab7db58 100644 --- a/jmclient/jmclient/taker.py +++ b/jmclient/jmclient/taker.py @@ -92,7 +92,7 @@ class Taker(object): self.on_finished_callback = callbacks[2] def default_taker_info_callback(self, infotype, msg): - jlog.debug(infotype + ":" + msg) + jlog.info(infotype + ":" + msg) def add_ignored_makers(self, makers): self.ignored_makers.extend(makers)