mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
always log error
This commit is contained in:
parent
7782a22f38
commit
87947c582d
@ -185,11 +185,10 @@ class Plugins:
|
||||
if plugin.__name__ == disabled:
|
||||
# errors are bad so disable the plugin in the database
|
||||
# but only if not in testing mode as that breaks in the GH pipeline
|
||||
log_plugin_error({plug_key: 'Disabled'}, 'init')
|
||||
if not settings.PLUGIN_TESTING:
|
||||
plugin_db_setting.active = False
|
||||
# TODO save the error to the plugin
|
||||
|
||||
log_plugin_error({plug_key: 'Disabled'}, 'init')
|
||||
plugin_db_setting.save()
|
||||
|
||||
# add to inactive plugins so it shows up in the ui
|
||||
|
Loading…
Reference in New Issue
Block a user