mirror of
https://github.com/LamGC/Oracle-Sentry.git
synced 2025-04-29 22:27:34 +00:00
refactor: 调整编码公钥失败时的动作.
编码公钥失败时的异常不应该被隐藏, 但为了保持鲁棒性, 我决定把异常直接打印到日志中.
This commit is contained in:
parent
35c45a858c
commit
4609e146d9
@ -112,7 +112,8 @@ public final class SshAuthInfoSerializer implements JsonSerializer<SshAuthInfo>,
|
||||
StringBuilder builder = new StringBuilder();
|
||||
PublicKeyEntry.appendPublicKeyEntry(builder, key);
|
||||
return builder.toString();
|
||||
} catch (IOException ignored) {
|
||||
} catch (IOException e) {
|
||||
log.error("ServerKey 编码失败, 下次加载时需要进行首次连接认证.", e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user