log every erro

This commit is contained in:
Para Dox
2025-05-31 21:41:24 +07:00
parent 7ab01cd5dd
commit 502f01a301

View File

@@ -91,11 +91,11 @@ def proxy():
print(f"INFO: Ignored error for method '{method_name}' (logging suppressed).", file=sys.stdout, flush=True)
# Second, if we haven't decided to ignore it yet, check the error code
if log_this_error and isinstance(outgoing['error'], dict) and outgoing['error'].get('code') == 3:
log_this_error = False
#if log_this_error and isinstance(outgoing['error'], dict) and outgoing['error'].get('code') == 3:
# log_this_error = False
# Optional: Log that an error was ignored due to its code
method_str = f" for method '{method_name}'" if method_name else ""
print(f"INFO: Ignored error{method_str} due to error code 3 (logging suppressed).", file=sys.stdout, flush=True)
# method_str = f" for method '{method_name}'" if method_name else ""
# print(f"INFO: Ignored error{method_str} due to error code 3 (logging suppressed).", file=sys.stdout, flush=True)
# Only log the request/error response if log_this_error is True
if log_this_error: