debug: 添加 SSH 连接调试日志
This commit is contained in:
@@ -67,6 +67,14 @@ func (api WebTerminalApi) SshEndpoint(c echo.Context) error {
|
||||
port = s.Port
|
||||
)
|
||||
|
||||
log.Debug("SshEndpoint: connecting",
|
||||
log.String("ip", ip),
|
||||
log.Int("port", port),
|
||||
log.String("username", username),
|
||||
log.Bool("hasPassword", password != "" && password != "-"),
|
||||
log.Bool("hasPrivateKey", privateKey != "" && privateKey != "-"),
|
||||
log.String("accessGatewayId", s.AccessGatewayId))
|
||||
|
||||
if s.AccessGatewayId != "" && s.AccessGatewayId != "-" {
|
||||
g, err := service.GatewayService.GetGatewayById(s.AccessGatewayId)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user