simple look
This commit is contained in:
@@ -79,6 +79,13 @@ def proxy():
|
|||||||
# Track the method name if an error occurred and method exists in request
|
# Track the method name if an error occurred and method exists in request
|
||||||
if isinstance(incoming, dict) and 'method' in incoming:
|
if isinstance(incoming, dict) and 'method' in incoming:
|
||||||
error_methods.add(incoming['method'])
|
error_methods.add(incoming['method'])
|
||||||
|
else:
|
||||||
|
# Log only the method name for successful responses
|
||||||
|
method_name = "unknown_method" # Default if not found
|
||||||
|
if isinstance(incoming, dict) and 'method' in incoming:
|
||||||
|
method_name = incoming['method']
|
||||||
|
response_log = f"<== Response (Success): Method '{method_name}' completed."
|
||||||
|
log_lines.append(response_log)
|
||||||
|
|
||||||
print('\n---\n'.join(log_lines), file=sys.stdout, flush=True)
|
print('\n---\n'.join(log_lines), file=sys.stdout, flush=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user