Merge pull request #7045 from freqtrade/remove_abortion

replace the word "abortion" with "denied" in log messages
This commit is contained in:
Matthias 2022-07-05 20:41:13 +02:00 committed by GitHub
commit da9dac64f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -634,7 +634,7 @@ class FreqtradeBot(LoggingMixin):
pair=pair, order_type=order_type, amount=amount, rate=enter_limit_requested, pair=pair, order_type=order_type, amount=amount, rate=enter_limit_requested,
time_in_force=time_in_force, current_time=datetime.now(timezone.utc), time_in_force=time_in_force, current_time=datetime.now(timezone.utc),
entry_tag=enter_tag, side=trade_side): entry_tag=enter_tag, side=trade_side):
logger.info(f"User requested abortion of buying {pair}") logger.info(f"User denied entry for {pair}.")
return False return False
order = self.exchange.create_order( order = self.exchange.create_order(
pair=pair, pair=pair,
@ -1465,7 +1465,7 @@ class FreqtradeBot(LoggingMixin):
time_in_force=time_in_force, exit_reason=exit_reason, time_in_force=time_in_force, exit_reason=exit_reason,
sell_reason=exit_reason, # sellreason -> compatibility sell_reason=exit_reason, # sellreason -> compatibility
current_time=datetime.now(timezone.utc)): current_time=datetime.now(timezone.utc)):
logger.info(f"User requested abortion of {trade.pair} exit.") logger.info(f"User denied exit for {trade.pair}.")
return False return False
try: try: