diff options
| author | 2024-04-14 18:31:53 +0200 | |
|---|---|---|
| committer | 2024-04-14 18:31:53 +0200 | |
| commit | c9df6707abc8a8d2b7815f5210cf3667be6fb9b1 (patch) | |
| tree | 8d55e118c61ee7140e0c2a09f3c619272f654038 /mastoapi.c | |
| parent | Merge branch 'master' of grunfink-codeberg:grunfink/snac2 (diff) | |
| download | snac2-c9df6707abc8a8d2b7815f5210cf3667be6fb9b1.tar.gz snac2-c9df6707abc8a8d2b7815f5210cf3667be6fb9b1.tar.xz snac2-c9df6707abc8a8d2b7815f5210cf3667be6fb9b1.zip | |
Log status in mastoapi_post_handler().
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -2119,8 +2119,6 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, | |||
| 2119 | if (!xs_startswith(q_path, "/api/v1/") && !xs_startswith(q_path, "/api/v2/")) | 2119 | if (!xs_startswith(q_path, "/api/v1/") && !xs_startswith(q_path, "/api/v2/")) |
| 2120 | return 0; | 2120 | return 0; |
| 2121 | 2121 | ||
| 2122 | srv_debug(1, xs_fmt("mastoapi_post_handler %s", q_path)); | ||
| 2123 | |||
| 2124 | int status = 404; | 2122 | int status = 404; |
| 2125 | xs *args = NULL; | 2123 | xs *args = NULL; |
| 2126 | char *i_ctype = xs_dict_get(req, "content-type"); | 2124 | char *i_ctype = xs_dict_get(req, "content-type"); |
| @@ -2626,6 +2624,8 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, | |||
| 2626 | if (logged_in) | 2624 | if (logged_in) |
| 2627 | user_free(&snac); | 2625 | user_free(&snac); |
| 2628 | 2626 | ||
| 2627 | srv_debug(1, xs_fmt("mastoapi_post_handler %s %d", q_path, status)); | ||
| 2628 | |||
| 2629 | return status; | 2629 | return status; |
| 2630 | } | 2630 | } |
| 2631 | 2631 | ||