From 51047dcbcee3785823bf34d4f879743211c09e4e Mon Sep 17 00:00:00 2001 From: JaniruTEC Date: Wed, 12 Aug 2020 23:22:26 +0200 Subject: [PATCH] Added additional debug messages --- .../common/mountpoint/TemporaryMountPointChooser.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java b/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java index 964da6c54..589c01872 100644 --- a/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java +++ b/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java @@ -6,6 +6,7 @@ import org.cryptomator.common.vaults.Vault; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; @@ -45,6 +46,7 @@ public class TemporaryMountPointChooser implements MountPointChooser { return Optional.of(mountPoint); } } + LOG.error("Failed to find feasible mountpoint at {}{}{}_x. Giving up after {} attempts.", parent, File.separator, basename, MAX_TMPMOUNTPOINT_CREATION_RETRIES); return Optional.empty(); } @@ -61,10 +63,12 @@ public class TemporaryMountPointChooser implements MountPointChooser { //WinFSP needs the parent, but the actual Mountpoint must not exist... if (SystemUtils.IS_OS_WINDOWS) { Files.createDirectories(mountPoint.getParent()); + LOG.debug("Successfully created folder for mount point: {}", mountPoint); return false; } else { //For Linux and Mac the actual Mountpoint must exist Files.createDirectories(mountPoint); + LOG.debug("Successfully created mount point: {}", mountPoint); return true; } } catch (IOException exception) {