If a function invocation isnt successful and log response isnt enabled, store response anyway
This commit is contained in:
2
app.py
2
app.py
@@ -285,7 +285,7 @@ def execute_http_function(user_id, function):
|
||||
http_function['id'],
|
||||
response_data['status'],
|
||||
request_data if log_request else {},
|
||||
response_data['result'] if log_response else {},
|
||||
response_data['result'] if (log_response or response_data['status'] != 'SUCCESS') else {},
|
||||
response_data['logs'])
|
||||
|
||||
# Map the Node.js response to Flask response
|
||||
|
||||
Reference in New Issue
Block a user