Log info in status chcker
This commit is contained in:
parent
9c6bb425f4
commit
ae855fc1c5
1 changed files with 1 additions and 0 deletions
|
@ -188,6 +188,7 @@ class AIModule(niobot.Module):
|
||||||
async def ping_task(target_url, target_name):
|
async def ping_task(target_url, target_name):
|
||||||
async with ollama_client(target_url) as client:
|
async with ollama_client(target_url) as client:
|
||||||
try:
|
try:
|
||||||
|
self.log.info("[status] Checking %s (%r)", target_name, target_url)
|
||||||
await client.ps()
|
await client.ps()
|
||||||
except (httpx.HTTPError, ConnectionError):
|
except (httpx.HTTPError, ConnectionError):
|
||||||
lines[target_name]["online"] = False
|
lines[target_name]["online"] = False
|
||||||
|
|
Loading…
Reference in a new issue