mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 16:27:13 +03:00
plugins: Log plugin names as we ask them to stop, and when we're done with them all
This should point the finger at any plugin(s) that aren't stopping properly. Well, at least those that are hanging *in* their `plugin_stop()`.
This commit is contained in:
parent
81974f66ec
commit
90ddd4e1e3
4
plug.py
4
plug.py
@ -251,10 +251,14 @@ def notify_stop():
|
||||
plugin_stop = plugin._get_func('plugin_stop')
|
||||
if plugin_stop:
|
||||
try:
|
||||
logger.info(f'Asking plugin "{plugin.name}" to stop...')
|
||||
newerror = plugin_stop()
|
||||
error = error or newerror
|
||||
except Exception as e:
|
||||
logger.exception(f'Plugin "{plugin.name}" failed')
|
||||
|
||||
logger.info('Done')
|
||||
|
||||
return error
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user