mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 17:37:43 +00:00
Normally when a plugin blocks an event, it will log a message. Especially when using plugins in stream
, router
, etc, this might be too verbose. In order to silence these logs, return an empty string for msg
(or no msg
at all).
This commit is contained in:
@ -164,7 +164,7 @@ void cmd_sync(const std::vector<std::string> &subArgs) {
|
||||
if (res == PluginEventSifterResult::Accept) {
|
||||
writer.write({ std::move(evJson), EventSourceType::Sync, url });
|
||||
} else {
|
||||
LI << "[" << ws.remoteAddr << "] write policy blocked event " << evJson.at("id").get_string() << ": " << okMsg;
|
||||
if (okMsg.size()) LI << "[" << ws.remoteAddr << "] write policy blocked event " << evJson.at("id").get_string() << ": " << okMsg;
|
||||
}
|
||||
} else if (msg.at(0) == "EOSE") {
|
||||
inFlightDown = false;
|
||||
|
Reference in New Issue
Block a user