From 7b72ced147c4506ec203094b616604cf74384bc8 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sun, 14 Apr 2024 18:08:41 +0100 Subject: [PATCH] Log when a non-server-url is passed to check_server --- src/cogs/ollama.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cogs/ollama.py b/src/cogs/ollama.py index 3ef8985..5da45ed 100644 --- a/src/cogs/ollama.py +++ b/src/cogs/ollama.py @@ -496,7 +496,9 @@ class Ollama(commands.Cog): async def check_server(self, url: str) -> bool: """Checks that a server is online and responding.""" if url in SERVER_KEYS: + _u = url url = CONFIG["ollama"][url]["base_url"] + self.log.warning("Resolved 'url' %s to %s", _u, url) async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(10)) as session: self.log.debug("Checking if %r is online.", url) try: