This is a corner case but we should handle it to prevent log files with +500Mo at the end of the day.
There is this recurrent error:
2017-04-05 11:32:01,841 30195 139819973555072 ERROR nxdrive.debug.wui.engine 'NoneType' object has no attribute 'get_queue_manager' Traceback (most recent call last): File "/mnt/master/PycharmProjects/nuxeo-drive/nuxeo-drive-client/nxdrive/debug/wui/engine.py", line 117, in get_engine result = self._export_engine(engine) File "/mnt/master/PycharmProjects/nuxeo-drive/nuxeo-drive-client/nxdrive/debug/wui/engine.py", line 25, in _export_engine result["queue"]["metrics"] = engine.get_queue_manager().get_metrics() AttributeError: 'NoneType' object has no attribute 'get_queue_manager' TypeError: unable to convert a Python 'NoneType' object to a C++ 'QString' instance Error in sys.excepthook: Traceback (most recent call last): File "/mnt/master/PycharmProjects/nuxeo-drive/nuxeo-drive-client/nxdrive/commandline.py", line 347, in info debugger.pm() File "/mnt/master/PycharmProjects/deploy-dir/.pyenv/versions/2.7.13/lib/python2.7/pdb.py", line 1270, in pm post_mortem(sys.last_traceback) AttributeError: 'module' object has no attribute 'last_traceback'
To reproduce:
1. Start Drive in debug mode.
2. In Settings, delete your account.
The GUI will freeze because of PDB but the recurrent error will add a lot of lines in the logs.
Even if you reconnect to your account, the error will continue to show up.