remove extra logging from ttm.py

This commit is contained in:
Ben Harris 2020-07-14 02:44:07 -04:00
parent 2a4bc5a9f6
commit 9ecd4c1674
1 changed files with 0 additions and 3 deletions

3
ttm.py
View File

@ -6,15 +6,12 @@ class Module(ModuleManager.BaseModule):
def on_load(self):
self.exports.add("shorturl-s-ttmsh", self._shorturl)
def _shorturl(self, url):
self.log.info("url to shorten:", url)
if len(url) < 18:
return None
page = utils.http.request(URL, method="POST",
post_data={"shorten": url})
self.log.info("page:", page)
if page and page.data:
return page.decode("utf8").rstrip("\n")
return None