Skip to content

Commit

Permalink
Merge pull request #746 from karol-brejna-i/745_default-request-handlers
Browse files Browse the repository at this point in the history
Introduce **kwargs to request_success/failure parameter list
  • Loading branch information
heyman authored Apr 27, 2018
2 parents 28340a8 + e91a710 commit cdf6aa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locust/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,10 @@ def median_from_dict(total, count):
A global instance for holding the statistics. Should be removed eventually.
"""

def on_request_success(request_type, name, response_time, response_length):
def on_request_success(request_type, name, response_time, response_length, **kwargs):
global_stats.log_request(request_type, name, response_time, response_length)

def on_request_failure(request_type, name, response_time, exception):
def on_request_failure(request_type, name, response_time, exception, **kwargs):
global_stats.log_error(request_type, name, exception)

def on_report_to_master(client_id, data):
Expand Down

0 comments on commit cdf6aa8

Please sign in to comment.