mirror of
https://github.com/andrewthetechie/py-healthchecks.io.git
synced 2026-01-05 16:42:56 +01:00
one last tweak
This commit is contained in:
@@ -128,7 +128,7 @@ That's what CheckTrap is for.
|
||||
client = AsyncClient(ping_key="ping_key")
|
||||
|
||||
# works with async too, and the ping api and slugs
|
||||
async with CheckTrap(client, check.slug) as ct:
|
||||
async with CheckTrap(client, slug=check.slug) as ct:
|
||||
# when entering the context manager, sends a start ping to your check
|
||||
# Add custom logs to what gets sent to healthchecks. Reminder, only the first 10k bytes get saved
|
||||
ct.add_log("My custom log message")
|
||||
|
||||
Reference in New Issue
Block a user