Skip to content

Commit

Permalink
enhance logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarq committed Nov 10, 2017
1 parent e01c85b commit b709ccb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions freqtrade/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ def _process() -> bool:
Trade.session.add(trade)
state_changed = True
else:
logger.info('Got no buy signal...')
logger.info(
'Checked all whitelisted currencies. '
'Found no suitable entry positions for buying. Will keep looking ...'
)
except ValueError:
logger.exception('Unable to create trade')

Expand Down Expand Up @@ -83,7 +86,10 @@ def close_trade_if_fulfilled(trade: Trade) -> bool:
and trade.close_rate is not None \
and trade.open_order_id is None:
trade.is_open = False
logger.info('No open orders found and trade is fulfilled. Marking %s as closed ...', trade)
logger.info(
'Marking %s as closed as the trade is fulfilled and found no open orders for it.',
trade
)
return True
return False

Expand Down

0 comments on commit b709ccb

Please sign in to comment.