Skip to content

Commit 1d4937e

Browse files
elioeCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 15d39af commit 1d4937e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/groovy/com/rundeck/plugin/util/PluginSshSessionFactory.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ class PluginSshSessionFactory implements TransportConfigCallback, Closeable {
6666
if (cachedKeyFile != null) {
6767
try {
6868
Files.deleteIfExists(cachedKeyFile)
69-
} catch (Exception ignored) {
69+
} catch (Exception e) {
70+
org.slf4j.LoggerFactory.getLogger(CustomSshdSessionFactory).warn("Failed to delete temporary SSH key file {}: {}", cachedKeyFile, e.message, e)
7071
}
7172
cachedKeyFile = null
7273
}

0 commit comments

Comments
 (0)