From 677973396a633b2fd1af28a17ea331fff1592ddf Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sun, 14 Apr 2024 18:11:57 +0100 Subject: [PATCH] Increase logging verbosity of check_server --- src/cogs/ollama.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cogs/ollama.py b/src/cogs/ollama.py index 6f17d23..da7d153 100644 --- a/src/cogs/ollama.py +++ b/src/cogs/ollama.py @@ -498,10 +498,10 @@ class Ollama(commands.Cog): if url in SERVER_KEYS: url = CONFIG["ollama"][url]["base_url"] async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(10)) as session: - self.log.debug("Checking if %r is online.", url) + self.log.info("Checking if %r is online.", url) try: async with session.get(url + "/api/tags") as resp: - self.log.debug("%r is online.", resp.url.host) + self.log.info("%r is online.", resp.url.host) return resp.ok except (aiohttp.ClientConnectionError, asyncio.TimeoutError): self.log.warning("%r is offline.", url, exc_info=True)