Private GIT

Skip to content
Snippets Groups Projects
Commit c9589f74 authored by miigotu's avatar miigotu
Browse files

Merge pull request #2838 from fernandog/ssl_error

Replace SSL Error with a url with information. Disable issue submissi…
parents d036a437 5940a38d
Branches
Tags
No related merge requests found
...@@ -142,7 +142,11 @@ class Logger(object): ...@@ -142,7 +142,11 @@ class Logger(object):
meThread = threading.currentThread().getName() meThread = threading.currentThread().getName()
message = meThread + u" :: " + msg message = meThread + u" :: " + msg
# pass exception information if debugging enabled # Change the SSL error to a warning with a link to information about how to fix it.
check = re.sub(r'error \[Errno 1\] _ssl.c:\d{3}: error:\d{8}:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error', 'See: http://git.io/vJrkM', message)
if check is not message:
message = check
level = WARNING
if level == ERROR: if level == ERROR:
self.logger.exception(message, *args, **kwargs) self.logger.exception(message, *args, **kwargs)
...@@ -214,6 +218,7 @@ class Logger(object): ...@@ -214,6 +218,7 @@ class Logger(object):
# parse and submit errors to issue tracker # parse and submit errors to issue tracker
for curError in sorted(classes.ErrorViewer.errors, key=lambda error: error.time, reverse=True)[:500]: for curError in sorted(classes.ErrorViewer.errors, key=lambda error: error.time, reverse=True)[:500]:
try: try:
title_Error = ss(str(curError.title)) title_Error = ss(str(curError.title))
if not len(title_Error) or title_Error == 'None': if not len(title_Error) or title_Error == 'None':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment