mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fixed issue with issue submitter deleting all errors before submitting them all.
This commit is contained in:
parent
1b45caaf7f
commit
fb3d485ced
@ -161,13 +161,14 @@ class Logger(object):
|
|||||||
|
|
||||||
regex = "^(%s)\s*([A-Z]+)\s*(.+?)\s*\:\:\s*(.*)$" % curError.time
|
regex = "^(%s)\s*([A-Z]+)\s*(.+?)\s*\:\:\s*(.*)$" % curError.time
|
||||||
|
|
||||||
|
maxlines = 50
|
||||||
pastebin_url = None
|
pastebin_url = None
|
||||||
for i, x in enumerate(reversed(log_data)):
|
for i, x in enumerate(reversed(log_data)):
|
||||||
x = ek.ss(x)
|
x = ek.ss(x)
|
||||||
match = re.match(regex, x)
|
match = re.match(regex, x)
|
||||||
if match:
|
if match:
|
||||||
level = match.group(2)
|
level = match.group(2)
|
||||||
if reverseNames[level] >= ERROR:
|
if reverseNames[level] == ERROR:
|
||||||
paste_data = "".join(log_data[len(log_data) - i - 50:])
|
paste_data = "".join(log_data[len(log_data) - i - 50:])
|
||||||
pastebin_url = PastebinAPI().paste('f59b8e9fa1fc2d033e399e6c7fb09d19', paste_data)
|
pastebin_url = PastebinAPI().paste('f59b8e9fa1fc2d033e399e6c7fb09d19', paste_data)
|
||||||
break
|
break
|
||||||
@ -192,10 +193,8 @@ class Logger(object):
|
|||||||
|
|
||||||
if not sickbeard.GIT_AUTOISSUES:
|
if not sickbeard.GIT_AUTOISSUES:
|
||||||
ui.notifications.message('Your issue ticket #%s was submitted successfully!' % issue.number)
|
ui.notifications.message('Your issue ticket #%s was submitted successfully!' % issue.number)
|
||||||
|
finally:
|
||||||
classes.ErrorViewer.clear()
|
classes.ErrorViewer.clear()
|
||||||
except Exception as e:
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class Wrapper(object):
|
class Wrapper(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user