Just deleted about 400 bot accounts and a bunch of spam. To mitigate this in the future, we've enabled reCaptcha on signup. Let me know if someone got caught in the crossfire.

Commit a7a8d2f1 authored by Rob Nelson's avatar Rob Nelson
Browse files

Standardize log messages.

parent d12c778c
......@@ -195,14 +195,14 @@ class EightchanHandler(IChanSoftware):
return OPs.values()
def Refresh(self):
self.log.info('[{0}] Reading {1}/{2}.'.format(self.SiteName, self.Board, self.Thread))
self.log.info('[%s] Reading %s/%s.', self.SiteName, self.Board, self.Thread)
self.GetDelayer().ThreadWait(self.Board, self.Thread)
threadData = self.getThreadAPI(self.Board, self.Thread)
if threadData is None or threadData.data is None:
return ''
ret = self.OnResponse(threadData)
self.log.info('[{0}] Finished refreshing thread /{1}/{2} ({3}).'.format(self.SiteName, self.Board, self.Thread, E8ChanOperations.GET_THREAD))
self.log.info('[%s] Finished refreshing thread /%s/%s (%s).', self.SiteName, self.Board, self.Thread, E8ChanOperations.GET_THREAD)
return ret
def OnStringsResponse(self, content, headers):
......@@ -240,7 +240,7 @@ class EightchanHandler(IChanSoftware):
if missing_padding:
encoded += '=' * missing_padding
if encoded != orig_encoded:
self.log.warn('Fixed fucked data-md5 base64 padding: {} -> {}'.format(orig_encoded, encoded))
self.log.warn('Fixed fucked data-md5 base64 padding: %s -> %s', orig_encoded, encoded)
o = ''
o = binascii.hexlify(base64.decodestring(encoded)).upper()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment