[librsvg: 26/45] filter.rs: Use the DrawingCtx's session for logging
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 26/45] filter.rs: Use the DrawingCtx's session for logging
- Date: Wed, 24 Aug 2022 01:56:38 +0000 (UTC)
commit 63ee11c7863f19e4a0e6d990d163e7e6ae39d762
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Aug 23 12:29:37 2022 -0500
filter.rs: Use the DrawingCtx's session for logging
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/731>
src/filter.rs | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/filter.rs b/src/filter.rs
index 98552aea8..2be886b3e 100644
--- a/src/filter.rs
+++ b/src/filter.rs
@@ -125,10 +125,13 @@ fn filter_spec_from_filter_node(
node_id: &NodeId,
node_being_filtered_name: &str,
) -> Result<FilterSpec, FilterResolveError> {
+ let session = draw_ctx.session().clone();
+
acquired_nodes
.acquire(node_id)
.map_err(|e| {
- rsvg_log!(
+ rsvg_log_session!(
+ session,
"element {} will not be filtered with \"{}\": {}",
node_being_filtered_name,
node_id,
@@ -143,7 +146,8 @@ fn filter_spec_from_filter_node(
match *element {
Element::Filter(_) => {
if element.is_in_error() {
- rsvg_log!(
+ rsvg_log_session!(
+ session,
"element {} will not be filtered since its filter \"{}\" is in error",
node_being_filtered_name,
node_id,
@@ -155,7 +159,8 @@ fn filter_spec_from_filter_node(
}
_ => {
- rsvg_log!(
+ rsvg_log_session!(
+ session,
"element {} will not be filtered since \"{}\" is not a filter",
node_being_filtered_name,
node_id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]