We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4eda66 commit feaaf30Copy full SHA for feaaf30
collector/lib/Utility.cpp
@@ -254,6 +254,11 @@ std::optional<std::string> SanitizedUTF8(std::string_view str) {
254
255
void LogProtobufMessage(const google::protobuf::Message& msg) {
256
using namespace google::protobuf::util;
257
+
258
+ if (!logging::CheckLogLevel(logging::LogLevel::DEBUG)) {
259
+ return;
260
+ }
261
262
std::string output;
263
absl::Status status = MessageToJsonString(msg, &output, JsonPrintOptions{});
264
if (status.ok()) {
0 commit comments