Skip to content

Commit

Permalink
Added more detailed logging for the configuration step.
Browse files Browse the repository at this point in the history
  • Loading branch information
duelle committed Jul 10, 2020
1 parent ad976a2 commit 8caa100
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions http/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ def configuration_create():
config_instance[param] = value

if is_required and param not in config_instance:
current_app.logger.error(f"Required parameter {param} not provided.")
return f'Required parameter {param} not provided.', status.HTTP_400_BAD_REQUEST

persistence['configuration'][configuration_uuid] = config_instance
current_app.logger.info(f"Config: {config_instance}")
return jsonify(config_instance), status.HTTP_201_CREATED


Expand Down
2 changes: 1 addition & 1 deletion jmeter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def execution():

persistence['execution'][execution_uuid] = execution_instance

return jsonify(execution_instance), status.HTTP_200_OK
return jsonify(execution_instance), status.HTTP_201_CREATED

else:
return "No configuration with that ID found.", jsonify(persistence), status.HTTP_404_NOT_FOUND
Expand Down

0 comments on commit 8caa100

Please sign in to comment.