Skip to content

Commit

Permalink
logger warn -> warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KissPeter committed Feb 11, 2020
1 parent 97eb5ff commit a98179c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apifuzzer/fuzzer_target/request_base_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ def format_pycurl_header(self, headers):

def expand_path_variables(self, url, path_parameters):
if not isinstance(path_parameters, dict):
self.logger.warn('Path_parameters {} does not in the desired format,received: {}'
.format(path_parameters, type(path_parameters)))
self.logger.warning('Path_parameters {} does not in the desired format,received: {}'
.format(path_parameters, type(path_parameters)))
return url
formatted_url = url
for path_key, path_value in path_parameters.items():
Expand All @@ -207,7 +207,7 @@ def expand_path_variables(self, url, path_parameters):
url_path_parameter = '{%PATH_PARAM%}'.replace('%PATH_PARAM%', path_parameter)
tmp_url = formatted_url.replace(url_path_parameter, path_value)
if tmp_url == formatted_url:
self.logger.warn('{} was not in the url: {}, adding it'.format(url_path_parameter, url))
self.logger.warning('{} was not in the url: {}, adding it'.format(url_path_parameter, url))
tmp_url += '&{}={}'.format(path_parameter, path_value)
formatted_url = tmp_url
self.logger.info('Compiled url in {}, out: {}'.format(url, formatted_url))
Expand Down
2 changes: 1 addition & 1 deletion apifuzzer/server_fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _transmit(self, node):
# elif hasattr(param, 'render'):
# payload[place] = param.render()
except KittyException as e:
self.logger.warn('Exception occurred while processing {}: {}'.format(place, e.__str__()))
self.logger.warning('Exception occurred while processing {}: {}'.format(place, e.__str__()))
# self.logger.info('Payload: {}'.format(payload))
self._last_payload = payload
try:
Expand Down

0 comments on commit a98179c

Please sign in to comment.