diff --git a/freqtrade/analyze.py b/freqtrade/analyze.py index 535e5c310..c1bae8303 100644 --- a/freqtrade/analyze.py +++ b/freqtrade/analyze.py @@ -205,11 +205,11 @@ class Analyze(object): # just for debugging if 'trailing_stop' in self.config and self.config['trailing_stop']: - print( + logger.warning( "HIT STOP: current price at {:.6f}, stop loss is {:.6f}, " "initial stop loss was at {:.6f}, trade opened at {:.6f}".format( current_rate, trade.stop_loss, trade.initial_stop_loss, trade.open_rate)) - print("trailing stop saved us: {:.6f}".format(trade.stop_loss - trade.initial_stop_loss)) + logger.debug("trailing stop saved us: {:.6f}".format(trade.stop_loss - trade.initial_stop_loss)) logger.debug('Stop loss hit.') return True diff --git a/freqtrade/persistence.py b/freqtrade/persistence.py index 192052627..11823b09a 100644 --- a/freqtrade/persistence.py +++ b/freqtrade/persistence.py @@ -141,7 +141,7 @@ class Trade(_DECL_BASE): else: logger.debug("keeping current stop loss") - print( + logger.debug( "{} - current price {:.6f}, bought at {:.6f} and calculated " "stop loss is at: {:.6f} initial stop at {:.6f}. trailing stop loss saved us: {:.6f} " "and max observed rate was {:.6f}".format(