add debugging

This commit is contained in:
j 2019-01-19 14:37:15 +05:30
parent 98bd2f6cf3
commit 038b04c178
2 changed files with 2 additions and 0 deletions

View file

@ -84,6 +84,7 @@ def api_upload(user_id, items):
if peer:
l = List.get_or_create(':Public')
if l:
logger.debug('%s added items to public folder: %s', user_id, items)
l.add_items(items)
return True
return False

View file

@ -462,6 +462,7 @@ class Node(Thread):
return False
def upload(self, items):
logger.debug('add items to %s\'s public folder: %s', self.id, items)
r = self.request('upload', items)
return bool(r)