mirror of
https://github.com/ihabunek/toot.git
synced 2024-11-03 04:17:21 -05:00
Remove redundant logging
These actions are already visible via http requests being logged.
This commit is contained in:
parent
a3435b4b96
commit
dff36e28f3
@ -541,11 +541,9 @@ class TUI(urwid.Frame):
|
|||||||
|
|
||||||
def async_toggle_favourite(self, timeline, status):
|
def async_toggle_favourite(self, timeline, status):
|
||||||
def _favourite():
|
def _favourite():
|
||||||
logger.info("Favouriting {}".format(status))
|
|
||||||
api.favourite(self.app, self.user, status.id)
|
api.favourite(self.app, self.user, status.id)
|
||||||
|
|
||||||
def _unfavourite():
|
def _unfavourite():
|
||||||
logger.info("Unfavouriting {}".format(status))
|
|
||||||
api.unfavourite(self.app, self.user, status.id)
|
api.unfavourite(self.app, self.user, status.id)
|
||||||
|
|
||||||
def _done(loop):
|
def _done(loop):
|
||||||
@ -562,11 +560,9 @@ class TUI(urwid.Frame):
|
|||||||
|
|
||||||
def async_toggle_reblog(self, timeline, status):
|
def async_toggle_reblog(self, timeline, status):
|
||||||
def _reblog():
|
def _reblog():
|
||||||
logger.info("Reblogging {}".format(status))
|
|
||||||
api.reblog(self.app, self.user, status.original.id, visibility=get_default_visibility())
|
api.reblog(self.app, self.user, status.original.id, visibility=get_default_visibility())
|
||||||
|
|
||||||
def _unreblog():
|
def _unreblog():
|
||||||
logger.info("Unreblogging {}".format(status))
|
|
||||||
api.unreblog(self.app, self.user, status.original.id)
|
api.unreblog(self.app, self.user, status.original.id)
|
||||||
|
|
||||||
def _done(loop):
|
def _done(loop):
|
||||||
@ -590,7 +586,6 @@ class TUI(urwid.Frame):
|
|||||||
|
|
||||||
def async_translate(self, timeline, status):
|
def async_translate(self, timeline, status):
|
||||||
def _translate():
|
def _translate():
|
||||||
logger.info("Translating {}".format(status))
|
|
||||||
self.footer.set_message("Translating status {}".format(status.original.id))
|
self.footer.set_message("Translating status {}".format(status.original.id))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -623,11 +618,9 @@ class TUI(urwid.Frame):
|
|||||||
|
|
||||||
def async_toggle_bookmark(self, timeline, status):
|
def async_toggle_bookmark(self, timeline, status):
|
||||||
def _bookmark():
|
def _bookmark():
|
||||||
logger.info("Bookmarking {}".format(status))
|
|
||||||
api.bookmark(self.app, self.user, status.id)
|
api.bookmark(self.app, self.user, status.id)
|
||||||
|
|
||||||
def _unbookmark():
|
def _unbookmark():
|
||||||
logger.info("Unbookmarking {}".format(status))
|
|
||||||
api.unbookmark(self.app, self.user, status.id)
|
api.unbookmark(self.app, self.user, status.id)
|
||||||
|
|
||||||
def _done(loop):
|
def _done(loop):
|
||||||
|
Loading…
Reference in New Issue
Block a user