nvbn / everpad

Evernote client well integrated with linux desktop
1.17k stars 143 forks source link

add traceback for exception in sync log #475

Open frostyplanet opened 9 years ago

frostyplanet commented 9 years ago

add some traceback in provider log (.everpad/logs/everpad-provider.log) to help bug fix

2015-07-23 23:31:08,608 - everpad-provider - DEBUG - Pulling note "美元指数" from remote server.
2015-07-23 23:31:11,280 - everpad-provider - ERROR - expected a character buffer object
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/everpad/provider/sync/agent.py", line 130, in perform
    self.remote_changes()
  File "build/bdist.linux-x86_64/egg/everpad/provider/sync/agent.py", line 170, in remote_changes
    note.PullNote(*self._get_sync_args()).pull()
  File "build/bdist.linux-x86_64/egg/everpad/provider/sync/note.py", line 181, in pull
    resource_ids = self._receive_resources(note, note_ttype)
  File "build/bdist.linux-x86_64/egg/everpad/provider/sync/note.py", line 287, in _receive_resources
    resource.from_api(resource_ttype)
  File "build/bdist.linux-x86_64/egg/everpad/provider/models.py", line 271, in from_api
    data.write(resource.data.body)
TypeError: expected a character buffer object
2015-07-23 23:31:11,281 - everpad-provider - DEBUG - Sync performed.