From 595264854f9b747c2fdf088e01cbaab7abc4284f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 20 Apr 2021 17:35:40 +0200 Subject: mpm: mount: Demote already-mounted warning The class Mount defines a mount point and device path. It currently warns if mount() is called twice, but that warning is at odds with the contract of that API. It even returns 'True' (== success) after printing the warning, and the outcome is the desired one. For that reason, we demote the warning to a debug statement. --- mpm/python/usrp_mpm/sys_utils/mount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpm/python/usrp_mpm/sys_utils/mount.py b/mpm/python/usrp_mpm/sys_utils/mount.py index 2e32fa014..3212a37cb 100644 --- a/mpm/python/usrp_mpm/sys_utils/mount.py +++ b/mpm/python/usrp_mpm/sys_utils/mount.py @@ -68,7 +68,7 @@ class Mount(): Mounts the mount point """ if self.ismounted(): - self.log.warning("{} was already mounted".format(self.mountpoint)) + self.log.debug("{} was already mounted".format(self.mountpoint)) return True self.prepare_mountpoint() self.log.debug("Mounting {}".format(self.mountpoint)) -- cgit v1.2.3