From 12791a98ecfa598a7f8d70e111ef826653797409 Mon Sep 17 00:00:00 2001 From: Tony George Date: Sat, 15 Oct 2022 12:46:45 +0530 Subject: [PATCH] Don't show message when unmounting temporary mount points --- src/Core/Main.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Core/Main.vala b/src/Core/Main.vala index fb642a5..92ef153 100644 --- a/src/Core/Main.vala +++ b/src/Core/Main.vala @@ -4227,7 +4227,7 @@ public class Main : GLib.Object{ if (mnt.mount_point == mdir2){ - log_msg("\nFound stale mount for device '%s' at path '%s'".printf(dev.device, mdir2)); + log_debug("\nFound stale mount for device '%s' at path '%s'".printf(dev.device, mdir2)); string cmd = "umount '%s'".printf(escape_single_quote(mdir2)); int retval = exec_sync(cmd); @@ -4236,12 +4236,12 @@ public class Main : GLib.Object{ int retval2 = exec_sync(cmd2); if (retval2 != 0){ - log_error("Failed to unmount"); - log_msg("Ret=%d".printf(retval)); + log_debug("E: Failed to unmount"); + log_debug("Ret=%d".printf(retval)); //ignore } else{ - log_msg("Unmounted successfully"); + log_debug("Unmounted successfully"); } } }