mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -06:00
added debug log
This commit is contained in:
parent
f7c695625f
commit
cb599cbf5c
@ -33,8 +33,9 @@ for plugin_path in settings.PLUGINS:
|
||||
plugin_patterns.append(
|
||||
path(f"{base_url}/", include((urlpatterns, app.label)))
|
||||
)
|
||||
except ImportError:
|
||||
logger.error(f"Plugin {plugin_name} does not define any base URLs")
|
||||
except ImportError as e:
|
||||
logger.warning(f"Plugin {plugin_name} does not define any base URLs at {plugin_path}.urls.urlpatterns")
|
||||
logger.debug(e)
|
||||
|
||||
# Check if the plugin specifies any API URLs
|
||||
try:
|
||||
@ -42,5 +43,6 @@ for plugin_path in settings.PLUGINS:
|
||||
plugin_api_patterns.append(
|
||||
path(f"{base_url}/", include((urlpatterns, f"{app.label}-api")))
|
||||
)
|
||||
except ImportError:
|
||||
logger.error(f"Plugin {plugin_name} does not define any API URLs")
|
||||
except ImportError as e:
|
||||
logger.warning(f"Plugin {plugin_name} does not define any API URLs at {plugin_path}.api.urls.urlpatterns")
|
||||
logger.debug(e)
|
||||
|
Loading…
Reference in New Issue
Block a user