chore: Remove debug logging

This commit is contained in:
Inex Code 2024-12-21 22:14:00 +03:00
parent fcc167fb33
commit 89278cffd7
No known key found for this signature in database
3 changed files with 0 additions and 6 deletions

View file

@ -96,12 +96,10 @@ class Bind:
raise BindError(f"Unable to bind {source} to {target} :{error.stderr}")
def unbind(self) -> None:
logger.warning(f"Unmounting '{self.binding_path}'")
if not exists(self.binding_path):
raise BindError(f"cannot unbind a non-existing path: {self.binding_path}")
try:
logger.warning(f"Unmounting '{self.binding_path}'")
subprocess.run(
# umount -l ?
["umount", self.binding_path],

View file

@ -388,7 +388,6 @@ class Service(ABC):
"""
service_name = self.get_display_name()
binds = self.binds()
logger.warning(f"Binds: {binds}")
report_progress(10, job, "Unmounting folders from old volume...")
unbind_folders(binds)

View file

@ -413,12 +413,9 @@ class TemplatedService(Service):
def get_owned_folders(self) -> List[OwnedPath]:
folders = self.meta.folders
owned_folders = self.meta.owned_folders
logger.warning(f"folders: {folders}")
logger.warning(f"owned_folders: {owned_folders}")
resulting_folders = owned_folders.copy()
for folder in folders:
resulting_folders.append(self.owned_path(folder))
logger.warning(f"returning owned_folders: {resulting_folders}")
return resulting_folders
def set_location(self, volume: BlockDevice):