diff --git a/counterparty-core/counterpartycore/lib/api/apiv1.py b/counterparty-core/counterpartycore/lib/api/apiv1.py index ec392aaa55..14cbe11551 100644 --- a/counterparty-core/counterpartycore/lib/api/apiv1.py +++ b/counterparty-core/counterpartycore/lib/api/apiv1.py @@ -612,10 +612,9 @@ def create_method(**kwargs): exceptions.BalanceError, ) as error: # TypeError happens when unexpected keyword arguments are passed in - import traceback - - print(traceback.format_exc()) - error_msg = f"Error composing {tx} transaction via API: {str(error)} {traceback.format_exc()}" + # import traceback + # print(traceback.format_exc()) + error_msg = f"Error composing {tx} transaction via API: {str(error)}" logger.trace(error_msg) raise JSONRPCDispatchException( code=JSON_RPC_ERROR_API_COMPOSE, message=error_msg diff --git a/counterparty-core/counterpartycore/lib/cli/server.py b/counterparty-core/counterpartycore/lib/cli/server.py index ea249e919c..dcd254e70e 100755 --- a/counterparty-core/counterpartycore/lib/cli/server.py +++ b/counterparty-core/counterpartycore/lib/cli/server.py @@ -195,9 +195,8 @@ def run(self): try: self.run_server() except Exception as e: # pylint: disable=broad-except - import traceback - - print(traceback.format_exc()) + # import traceback + # print(traceback.format_exc()) logger.error("Error in server thread: %s", e, stack_info=True) _thread.interrupt_main() diff --git a/counterparty-core/counterpartycore/lib/messages/sweep.py b/counterparty-core/counterpartycore/lib/messages/sweep.py index 14592dffed..f7c798a8ba 100644 --- a/counterparty-core/counterpartycore/lib/messages/sweep.py +++ b/counterparty-core/counterpartycore/lib/messages/sweep.py @@ -91,7 +91,6 @@ def compose( flags, memo_bytes, ) - logger.warning(f"data_content: {data}") else: data = messagetype.pack(ID) data += struct.pack(FORMAT, short_address_bytes, flags) @@ -113,7 +112,6 @@ def new_unpack(message): "memo": memo_bytes, } except Exception as e: # pylint: disable=broad-exception-caught - logger.error(f"sweep unpack error: {e}") raise exceptions.UnpackError("could not unpack") from e @@ -137,7 +135,6 @@ def unpack(message): # unpack address full_address = address.unpack(short_address_bytes) except struct.error as e: - logger.warning("sweep send unpack error: %s", e) raise exceptions.UnpackError("could not unpack") from e unpacked = { @@ -156,7 +153,6 @@ def parse(db, tx, message): # Unpack message. try: unpacked = unpack(message) - logger.warning("unpacked: %s", unpacked) destination, flags, memo_bytes = ( unpacked["destination"], unpacked["flags"], diff --git a/counterparty-core/counterpartycore/lib/messages/versions/enhancedsend.py b/counterparty-core/counterpartycore/lib/messages/versions/enhancedsend.py index b27745ef9f..c40713bf22 100644 --- a/counterparty-core/counterpartycore/lib/messages/versions/enhancedsend.py +++ b/counterparty-core/counterpartycore/lib/messages/versions/enhancedsend.py @@ -187,12 +187,10 @@ def compose( short_address_bytes, memo_bytes, ) - logger.warning(f"data1: {data}") else: data = messagetype.pack(ID) data += struct.pack(FORMAT, asset_id, quantity, short_address_bytes) data += memo_bytes - logger.warning(f"data2: {data}") cursor.close() # return an empty array as the second argument because we don't need to send BTC dust to the recipient diff --git a/counterparty-core/counterpartycore/lib/messages/versions/send1.py b/counterparty-core/counterpartycore/lib/messages/versions/send1.py index 28b510ad1e..b0ffb8e5c8 100644 --- a/counterparty-core/counterpartycore/lib/messages/versions/send1.py +++ b/counterparty-core/counterpartycore/lib/messages/versions/send1.py @@ -88,7 +88,6 @@ def compose( skip_validation: bool = False, no_dispense: bool = False, ): - logger.warning("compose_send1") cursor = db.cursor() # Just send BTC?