Skip to content

Conversation

@svenvg93
Copy link
Contributor

@svenvg93 svenvg93 commented Jan 11, 2026

πŸ“ƒ Description

The webhook notification were fire and forget. There is was no feedback to the user nor logging when it went wrong.

πŸͺ΅ Changelog

βž• Added

  • Add LogWebhookFailure listener that listens for WebhookCallFailedEvent and creates a log.
    • [2026-01-11 16:42:58] local.ERROR: Webhook notification failed {"url":"http://192.168.1.5:8001/webhook","attempt":1,"http_verb":"post","error_type":"GuzzleHttp\\Exception\\ConnectException","error_message":"cURL error 28: Operation timed out after 3002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://192.168.1.5:8001/webhook"}

// Generate a fake Result (NOT saved to database)
$fakeResult = SpeedtestFakeResultGenerator::completed();

$hasFailure = false;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep this simple for now and just write to the logs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, now we just log it.

@svenvg93 svenvg93 requested a review from alexjustesen January 25, 2026 16:46
@svenvg93 svenvg93 changed the title chore: add webhook logging Chore: add webhook logging Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants