2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

chore: disable SSHD logging due to performance degradation and being very noisy even in development

This commit is contained in:
ShellWen Chen
2024-07-21 10:25:18 +08:00
committed by Albert Vaca Cintora
parent 7d28c52c35
commit 90dbdee282

View File

@@ -31,6 +31,7 @@ import org.kde.kdeconnect.Helpers.SecurityHelpers.RsaHelper
import org.kde.kdeconnect.Helpers.SecurityHelpers.constantTimeCompare import org.kde.kdeconnect.Helpers.SecurityHelpers.constantTimeCompare
import org.kde.kdeconnect.Plugins.SftpPlugin.saf.SafFileSystemFactory import org.kde.kdeconnect.Plugins.SftpPlugin.saf.SafFileSystemFactory
import org.kde.kdeconnect.Plugins.SftpPlugin.saf.SafPath import org.kde.kdeconnect.Plugins.SftpPlugin.saf.SafPath
import org.slf4j.impl.HandroidLoggerAdapter
import java.io.IOException import java.io.IOException
import java.nio.channels.SeekableByteChannel import java.nio.channels.SeekableByteChannel
import java.nio.charset.StandardCharsets import java.nio.charset.StandardCharsets
@@ -210,6 +211,9 @@ internal class SimpleSftpServer {
// `System.getProperty("user.home")` is not available on Android, // `System.getProperty("user.home")` is not available on Android,
// but it exists in SSHD Core's `org.apache.sshd.common.util.io.PathUtils.LazyDefaultUserHomeFolderHolder`. // but it exists in SSHD Core's `org.apache.sshd.common.util.io.PathUtils.LazyDefaultUserHomeFolderHolder`.
PathUtils.setUserHomeFolderResolver { Path.of("/") } PathUtils.setUserHomeFolderResolver { Path.of("/") }
// Disable SSHD logging due to performance degradation and being very noisy even in development
HandroidLoggerAdapter.DEBUG = false
} }
} }
} }