Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: event names included extra underscore #1768

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Plugins/HTTPClient/HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void PerformRequest(const Request &client_req)
{"RESPONSE",
"Failed to make a client request with server. Is the url/port correct?"});
MessageBus::Broadcast("NWNX_EVENT_SIGNAL_EVENT",
{"NWNX_ON_HTTP_CLIENT_FAILED",
{"NWNX_ON_HTTPCLIENT_FAILED",
"0"});
LOG_ERROR(
"HTTP Client Request to '%s%s' failed, [Error: %d].",
Expand Down Expand Up @@ -252,7 +252,7 @@ void PerformRequest(const Request &client_req)
{
MessageBus::Broadcast(
"NWNX_EVENT_SIGNAL_EVENT",
{"NWNX_ON_HTTP_CLIENT_SUCCESS",
{"NWNX_ON_HTTPCLIENT_SUCCESS",
moduleOid});
LOG_INFO(
"HTTP Client Request to '%s%s' succeeded.",
Expand All @@ -262,7 +262,7 @@ void PerformRequest(const Request &client_req)
{
MessageBus::Broadcast(
"NWNX_EVENT_SIGNAL_EVENT",
{"NWNX_ON_HTTP_CLIENT_FAILED",
{"NWNX_ON_HTTPCLIENT_FAILED",
moduleOid});
LOG_WARNING(
"HTTP Client Request to '%s%s' failed, rate limited.",
Expand All @@ -272,7 +272,7 @@ void PerformRequest(const Request &client_req)
else
{
MessageBus::Broadcast("NWNX_EVENT_SIGNAL_EVENT",
{"NWNX_ON_HTTP_CLIENT_FAILED",
{"NWNX_ON_HTTPCLIENT_FAILED",
moduleOid});
LOG_WARNING(
"HTTP Client Request to '%s%s' failed, status code '%d'.",
Expand Down
Loading