mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 04:36:39 +00:00
chore: Remove debug logging
This commit is contained in:
parent
fcc167fb33
commit
89278cffd7
|
@ -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],
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue