[librsvg: 27/45] image.rs: Use a session for logging




commit 8919cf8afdca227eecf0084d44b877be0f075284
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Aug 23 12:31:08 2022 -0500

    image.rs: Use a session for logging
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/731>

 src/image.rs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/image.rs b/src/image.rs
index a8c3ab93a..b674a51e9 100644
--- a/src/image.rs
+++ b/src/image.rs
@@ -58,7 +58,12 @@ impl Draw for Image {
             Some(ref url) => match acquired_nodes.lookup_image(url) {
                 Ok(surf) => surf,
                 Err(e) => {
-                    rsvg_log!("could not load image \"{}\": {}", url, e);
+                    rsvg_log_session!(
+                        draw_ctx.session(),
+                        "could not load image \"{}\": {}",
+                        url,
+                        e
+                    );
                     return Ok(draw_ctx.empty_bbox());
                 }
             },


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