Skip to content

Commit 14bbe6a

Browse files
committed
Fixed the log message and removed the url == plugin_url check
1 parent 361c98b commit 14bbe6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/cat/routes/plugins.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ async def get_available_plugins(
3030
for p in registry_plugins:
3131
plugin_url = p.get("plugin_url", None)
3232
if plugin_url is None:
33-
log.warning(f"Plugin {p.get('name')} has no `plugin_url`. It will be skipped from the plugins list.")
33+
log.warning(f"Plugin {p.get('name')} has no `plugin_url`. It will be skipped from the registry list.")
3434
continue
35-
url = p.get("url", None)
36-
if url and url != plugin_url:
37-
log.warning(f"Plugin {p.get('name')} has `url` {url} different from `plugin_url` {plugin_url}. please check the plugin.")
35+
# url = p.get("url", None)
36+
# if url and url != plugin_url:
37+
# log.info(f"Plugin {p.get('name')} has `url` {url} different from `plugin_url` {plugin_url}. please check the plugin.")
3838
if plugin_url in registry_plugins_index:
3939
current = registry_plugins_index[plugin_url]
4040
log.warning(f"duplicate plugin_url {plugin_url} found in registry. Plugins {p.get('name')} has same url than {current.get('name')}. Skipping.")

0 commit comments

Comments
 (0)