summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-04-14 18:31:53 +0200
committerdefault <nobody@localhost>2024-04-14 18:31:53 +0200
commitc9df6707abc8a8d2b7815f5210cf3667be6fb9b1 (patch)
tree8d55e118c61ee7140e0c2a09f3c619272f654038 /mastoapi.c
parentad4199de75277c71b121973d9aef8176cb28fea3 (diff)
Log status in mastoapi_post_handler().
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 4d80f69..36f7238 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -2119,8 +2119,6 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
if (!xs_startswith(q_path, "/api/v1/") && !xs_startswith(q_path, "/api/v2/"))
return 0;
- srv_debug(1, xs_fmt("mastoapi_post_handler %s", q_path));
-
int status = 404;
xs *args = NULL;
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,
if (logged_in)
user_free(&snac);
+ srv_debug(1, xs_fmt("mastoapi_post_handler %s %d", q_path, status));
+
return status;
}