Skip to content

Commit 558a386

Browse files
committed
Update ssh.go
部署测试模拟发现,如果设置失败会大量产生这种Warning,可能因为部署过程kk有大量ssh连接操作的缘故,故降到Debug级别 Co-Authored-By: zmoon460 <[email protected]> Signed-off-by: zmoon460 <[email protected]>
1 parent 96fb954 commit 558a386

File tree

1 file changed

+1
-1
lines changed
  • cmd/kk/pkg/core/connector

1 file changed

+1
-1
lines changed

cmd/kk/pkg/core/connector/ssh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func (c *connection) session() (*ssh.Session, error) {
259259
}
260260

261261
if err := sess.Setenv("LANG", "en_US.UTF-8"); err != nil { // try make sure work with english language environments
262-
logger.Log.Warningf("Warning: Failed to enforce LANG=en_US.UTF-8. (Error: %v)", err)
262+
logger.Log.Debugf("Failed to enforce LANG=en_US.UTF-8. (Error: %v)", err)
263263
}
264264

265265
return sess, nil

0 commit comments

Comments
 (0)