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"),
|
body = "[{dt}]\tURL: '{url}'\tMETHOD: {met}\tARGS: {args}\n".format(dt=utils.now().strftime("%F %T"),
|
||||||
url=url, met=method, args=args)
|
url=url, met=method, args=args)
|
||||||
|
utils.get_file(self.request_log_name)
|
||||||
with open(self.request_log_name, 'ab') as file:
|
with open(self.request_log_name, 'ab') as file:
|
||||||
file.write(body.encode("UTF-8"))
|
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):
|
interactive: bool = False):
|
||||||
"""
|
"""
|
||||||
Process error logging and email sending to developer
|
Process error logging and email sending to developer
|
||||||
:param error:
|
|
||||||
:param interactive: Should print interactively
|
:param interactive: Should print interactively
|
||||||
:param log_info: String to be written in output
|
:param log_info: String to be written in output
|
||||||
:param name: String Instance name
|
:param name: String Instance name
|
||||||
|
2
setup.py
2
setup.py
@ -41,6 +41,6 @@ setup(
|
|||||||
test_suite='tests',
|
test_suite='tests',
|
||||||
tests_require=test_requirements,
|
tests_require=test_requirements,
|
||||||
url='https://github.com/eeriks/erepublik_script',
|
url='https://github.com/eeriks/erepublik_script',
|
||||||
version='0.14.5',
|
version='0.14.5.1',
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user