Jump to content

How should i trace random errors?

Konstantin Maslyuk

Recommended Posts

Logging an uncaught exception
Traceback (most recent call last):
  File "\\somewhere\ftrack_connect_pipeline\util.py", line 28, in exceptHookWrapper
    method(*args, **kwargs)
  File "\\somewhere\ftrack_connect_pipeline\ui\widget\actions.py", line 308, in _addRecentAction
    recentActions = self._getRecentActions()
  File "\\somewhere\ftrack_connect_pipeline\ui\widget\actions.py", line 276, in _getRecentActions
    if not self._isRecentActionsEnabled():
  File "\\somewhere\ftrack_connect_pipeline\ui\widget\actions.py", line 255, in _isRecentActionsEnabled
    session = ftrack_connect_pipeline.util.get_thread_session()
  File "\\somewhere\ftrack_connect_pipeline\util.py", line 153, in get_thread_session
    thread._ftrack_session = get_session()
  File "\\somewhere\ftrack_connect_pipeline\util.py", line 140, in get_session
  File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\session.py", line 268, in __init__
  File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\session.py", line 1362, in _discover_plugins
    self._plugin_paths, [self], plugin_arguments
  File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\plugin.py", line 120, in discover
  File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\resource\hook\resolver.py", line 140, in register
  File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\event\hub.py", line 406, in subscribe
    subscription, callback, subscriber, priority
  File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\event\hub.py", line 453, in _add_subscriber
  File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\event\subscriber.py", line 13, in __init__
  File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\event\subscription.py", line 15, in __init__
    self._expression = self.parser.parse(subscription)
  File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\event\expression.py", line 94, in parse
    'Failed to parse: {0}. {1}'.format(expression, error)
ParseError: Failed to parse: topic=ftrack.location.request-resolve and source.user.username="xxxxxx@xxxxxxx.com". 

Some times i encounter exceptions when initialize a Session some time i got exception when working with locations, the real exception here is completely obscured.

Could i suggest to do logging.exception() before raising another exception in exception handler?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...