add debugging
This commit is contained in:
parent
98bd2f6cf3
commit
038b04c178
2 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,7 @@ def api_upload(user_id, items):
|
||||||
if peer:
|
if peer:
|
||||||
l = List.get_or_create(':Public')
|
l = List.get_or_create(':Public')
|
||||||
if l:
|
if l:
|
||||||
|
logger.debug('%s added items to public folder: %s', user_id, items)
|
||||||
l.add_items(items)
|
l.add_items(items)
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
|
@ -462,6 +462,7 @@ class Node(Thread):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def upload(self, items):
|
def upload(self, items):
|
||||||
|
logger.debug('add items to %s\'s public folder: %s', self.id, items)
|
||||||
r = self.request('upload', items)
|
r = self.request('upload', items)
|
||||||
return bool(r)
|
return bool(r)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue