Skip to content

Commit

Permalink
* FIX [doc/webhook] fix directory of doc & add a log to webhook for d…
Browse files Browse the repository at this point in the history
…ebugging

Signed-off-by: jaylin <jaylin@emqx.io>
  • Loading branch information
JaylinYu committed Feb 1, 2024
1 parent 3fc909a commit bd0ebd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/directory.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
},
{
"title": "Plugin-System",
"path": "config-description/gateway"
"path": "config-description/plugin"
}
]
},
Expand Down
1 change: 1 addition & 0 deletions nanomq/webhook_inproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ send_msg(conf_web_hook *conf, nng_msg *msg)
nng_http_conn_write_req(conn, req, aio);
nng_aio_set_timeout(aio, 1000);
nng_aio_wait(aio);
log_debug("webhook post result %d", nng_aio_result(aio));

if ((rv = nng_aio_result(aio)) != 0) {
log_error("Write req failed: %s", nng_strerror(rv));
Expand Down

0 comments on commit bd0ebd3

Please sign in to comment.