From 044feec0928db7050dc84d91de066eca246c1aa5 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Tue, 13 Aug 2024 16:17:39 -0400 Subject: [PATCH] rust/bwrap: log `fusermount -u` errors to stderr I believe cosa is hitting an error in this code path, but we can't inspect the error because there's no journald running in supermin: https://github.com/coreos/coreos-assembler/issues/3848 We don't gain much by printing this error to the journal since it shouldn't be very common. Print it on stderr instead where it's more likely to have visibility. --- rust/src/bwrap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/bwrap.rs b/rust/src/bwrap.rs index 2da6d9b0db..a39e7524c1 100644 --- a/rust/src/bwrap.rs +++ b/rust/src/bwrap.rs @@ -136,7 +136,7 @@ impl Drop for RoFilesMount { }) .err() .map(|e| { - systemd::journal::print(4, &format!("{}", e)); + eprintln!("{}", e); }) .is_none(); if !success {