Removes a new line (\n) symbol that is messing the logged Exception error message

Logs should be recorded in a single line, but this Exceptions is generating error messages with the new line symbol, that is breaking the message, leading to 2 lines error messages in the logs.
This commit is contained in:
NannoSilver 2024-11-17 14:21:31 -03:00 committed by GitHub
parent 50baa8db50
commit 45e0822fe2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ class FunctionTimedOut(BaseException):
else:
timedOutAfterStr = "Unknown"
return 'Function %s (args=%s) (kwargs=%s) timed out after %s seconds.\n' %(timedOutFuncName, repr(self.timedOutArgs), repr(self.timedOutKwargs), timedOutAfterStr)
return 'Function %s (args=%s) (kwargs=%s) timed out after %s seconds. ' %(timedOutFuncName, repr(self.timedOutArgs), repr(self.timedOutKwargs), timedOutAfterStr)
def retry(self, timeout=RETRY_SAME_TIMEOUT):
'''