Skip to content

Commit

Permalink
bump logging
Browse files Browse the repository at this point in the history
Signed-off-by: Kuat Yessenov <[email protected]>
  • Loading branch information
kyessenov committed Oct 5, 2023
1 parent 3dc0842 commit 3c9ec58
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ void Config::updateFilterState(const Formatter::HttpFormatterContext& context,
for (const auto& value : values_) {
const std::string bytes_value = value.value_->formatWithContext(context, info);
if (bytes_value.empty() && value.skip_if_empty_) {
ENVOY_LOG(trace, "Skip empty value for an object '{}'", value.key_);
ENVOY_LOG(debug, "Skip empty value for an object '{}'", value.key_);
continue;
}
auto object = value.factory_->createFromBytes(bytes_value);
if (object == nullptr) {
ENVOY_LOG(trace, "Failed to create an object '{}' from value '{}'", value.key_, bytes_value);
ENVOY_LOG(debug, "Failed to create an object '{}' from value '{}'", value.key_, bytes_value);
continue;
}
ENVOY_LOG(trace, "Set the filter state to '{}'", object->serializeAsString().value_or(""));
ENVOY_LOG(debug, "Created the filter state '{}' from value '{}'", value.key_, bytes_value);
info.filterState()->setData(value.key_, std::move(object), value.state_type_, life_span_,
value.stream_sharing_);
}
Expand Down

0 comments on commit 3c9ec58

Please sign in to comment.