Skip to content

Commit

Permalink
perf: add more log
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Jan 8, 2025
1 parent 53809ff commit 2cf7518
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/httpd/sftpvolume.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,10 @@ func (u *UserVolume) GetFile(path string) (fileData elfinder.FileData, err error

sf, err := u.UserSftp.Open(filepath.Join(u.basePath, TrimPrefix(path)))
if err != nil {
logger.Errorf("GetFile Open file %s err: %s", path, err)
return rest, err
}
logger.Info("GetFile Open file success: ", path)

// _, _ = sf.Seek(0, io.SeekStart)
// 屏蔽 sftp*File 的 WriteTo 方法,防止调用 sftp stat 命令
Expand Down

0 comments on commit 2cf7518

Please sign in to comment.