Commit 76760f1
committed
Improve logging from webhook
When an error occurs in the webhook (either with itself or due to
invalid input), it returns a 4xx/5xx and some error text. For security
reasons, Caddy reduces all of these results to a simple 400/503. Since
aiohttp only logs the response code, and Caddy only logs admin problems,
this information was lost.
We don't really do anything with access logs, so just enable them only
for the errors.1 parent e8e37f7 commit 76760f1
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
25 | 34 | | |
26 | 35 | | |
27 | 36 | | |
| |||
41 | 50 | | |
42 | 51 | | |
43 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
44 | 56 | | |
45 | 57 | | |
46 | 58 | | |
| |||
51 | 63 | | |
52 | 64 | | |
53 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
54 | 69 | | |
55 | 70 | | |
56 | 71 | | |
| |||
0 commit comments