[librsvg: 2/3] Log when an element is set in error



commit 55dd0799d2e37fe2a1b906c950aa6f971bc06ac1
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Feb 13 11:20:41 2020 -0600

    Log when an element is set in error

 rsvg_internals/src/node.rs | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/rsvg_internals/src/node.rs b/rsvg_internals/src/node.rs
index 67bee167..e5bb0d6f 100644
--- a/rsvg_internals/src/node.rs
+++ b/rsvg_internals/src/node.rs
@@ -250,6 +250,7 @@ impl NodeData {
     }
 
     fn set_error(&mut self, error: NodeError) {
+        rsvg_log!("setting node {} in error: {}", self, error);
         self.result = Err(error);
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]