Skip to content

Commit

Permalink
Update middleware.py (#766)
Browse files Browse the repository at this point in the history
Change Logger "warn" to "warning" due to deprecation.
  • Loading branch information
rjdebastiani authored Jan 2, 2025
1 parent 6107031 commit d5d91d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silk/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def process_response(self, request, response):
break
except (AttributeError, DatabaseError):
if attempts >= max_attempts:
Logger.warn('Exhausted _process_response attempts; not processing request')
Logger.warning('Exhausted _process_response attempts; not processing request')
break
attempts += 1
return response

0 comments on commit d5d91d3

Please sign in to comment.