Increase logging verbosity of check_server
This commit is contained in:
parent
4b9eab0bdb
commit
677973396a
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue