nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 79e88bfae9ff9c216cb7a207f492dff8ce842847
parent a6666407213b6f46ec85769c2aa9b2a3d1866e2e
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Mon, 27 Aug 2018 05:40:04 -0400

Add additional logging to inital note sync

Diffstat:
Mnnotes_cli/nextcloud_note.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/nnotes_cli/nextcloud_note.py b/nnotes_cli/nextcloud_note.py @@ -227,14 +227,17 @@ def get_note_list(self, category=None): note_list = res.json() self.status = 'online' except ConnectionError as e: + logging.exception('connection error') self.status = 'offline, connection error' status = -1 except RequestException as e: # if problem with network request/response + logging.exception('request error') status = -1 except ValueError as e: # if invalid json data status = -1 + logging.exception('request returned bad JSON data') # Can only filter for category at end, once all notes have been # retrieved. Below based on simplenote.vim, except we return