commit c9df670
default
·
2024-04-14 16:31:53 +0000 UTC
parent ad4199d
Log status in mastoapi_post_handler().
1 files changed,
+2,
-2
+2,
-2
1@@ -2119,8 +2119,6 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
2 if (!xs_startswith(q_path, "/api/v1/") && !xs_startswith(q_path, "/api/v2/"))
3 return 0;
4
5- srv_debug(1, xs_fmt("mastoapi_post_handler %s", q_path));
6-
7 int status = 404;
8 xs *args = NULL;
9 char *i_ctype = xs_dict_get(req, "content-type");
10@@ -2626,6 +2624,8 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
11 if (logged_in)
12 user_free(&snac);
13
14+ srv_debug(1, xs_fmt("mastoapi_post_handler %s %d", q_path, status));
15+
16 return status;
17 }
18