After deleting debug directory next request failed if SlowRequests.debug == True
This commit is contained in:
parent
25a0d8993e
commit
bb8634fe56
@ -223,7 +223,7 @@ class SlowRequests(Session):
|
||||
|
||||
body = "[{dt}]\tURL: '{url}'\tMETHOD: {met}\tARGS: {args}\n".format(dt=utils.now().strftime("%F %T"),
|
||||
url=url, met=method, args=args)
|
||||
|
||||
utils.get_file(self.request_log_name)
|
||||
with open(self.request_log_name, 'ab') as file:
|
||||
file.write(body.encode("UTF-8"))
|
||||
|
||||
|
@ -296,7 +296,6 @@ def process_error(log_info: str, name: str, exc_info: tuple, citizen=None, commi
|
||||
interactive: bool = False):
|
||||
"""
|
||||
Process error logging and email sending to developer
|
||||
:param error:
|
||||
:param interactive: Should print interactively
|
||||
:param log_info: String to be written in output
|
||||
:param name: String Instance name
|
||||
|
Loading…
x
Reference in New Issue
Block a user