Tom Downes Posted November 14, 2016 Report Share Posted November 14, 2016 Hi I create an ftrack api session in maya, to do something. I happen to have debug level logging on, and I notice : ftrack_api.event.hub.EventHub : Received packet: 2:: ftrack_api.event.hub.EventHub : Sent packet: 2::: logging in the script editor, repeatedly every few seconds. I know how to turn off the logging, but can I close the session and stop whatever it is from running? I know I don't need anything to be running, my task with the api is complete. cheers! Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted November 15, 2016 Report Share Posted November 15, 2016 Hi Tom, welcome to the forums! You should be able to do: session.event_hub.disconnect() Let me know how it goes! Link to comment Share on other sites More sharing options...
Tom Downes Posted November 15, 2016 Author Report Share Posted November 15, 2016 great, thanks Mattias, that works. I just re-read the docs and found that I can skip subscribing to the event hub in the first place too, which suits me better in this case session = ftrack_api.Session(auto_connect_event_hub=False) Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted November 15, 2016 Report Share Posted November 15, 2016 Even better! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.