Skip to content

Commit

Permalink
remove end-of-line from error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed May 4, 2023
1 parent c1a007a commit f53e159
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/off_chain/cow_endpoint_surplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,23 +271,23 @@ def logging_function(
Logs to terminal (and file iff file_name is passed).
"""
log_output = (
"Transaction Hash: "
"Tx hash: "
+ competition_data["transactionHash"]
+ "\n"
+ "\t\t"
+ "Order: "
+ individual_order_id
+ "\n"
+ "\t\t"
+ "Winning Solver: "
+ solver
+ "\n"
+ "More surplus Corresponding Solver: "
+ "\t\t"
+ "Solver providing more surplus: "
+ competition_data["solutions"][first_key]["solver"]
+ "\n"
+ "Deviation: "
+ "\t\t"
+ "Relative deviation: "
+ (str(format(sorted_values[0][1], ".4f")) + "%")
+ "\n"
+ "\t\t"
+ "Absolute difference: "
+ (str(format(sorted_values[0][0], ".5f")) + " ETH\n")
+ (str(format(sorted_values[0][0], ".5f")) + " ETH")
)
self.logger.error(log_output)

Expand Down

0 comments on commit f53e159

Please sign in to comment.