Skip to content

[DEBUG] Minimal debug logging for FTP upload issue#27

Merged
hxcan merged 1 commit into
masterfrom
debug/ftp-upload-minimal-v2
May 13, 2026
Merged

[DEBUG] Minimal debug logging for FTP upload issue#27
hxcan merged 1 commit into
masterfrom
debug/ftp-upload-minimal-v2

Conversation

@sisterfuture

Copy link
Copy Markdown
Collaborator

问题

使用 ftpFileWrite 工具上传文件失败:Truncated server reply: '150 ' (MalformedServerReplyException)

解决方案

添加最小化调试日志,用于诊断 FTP 上传问题:

  • 添加 logDebug() 方法将日志写入 /sdcard/Download/builtinftp_<package>_debug.log
  • 在关键方法中添加调试日志:
    • connectToClientDataPort() - 记录连接客户端数据端口
    • notifyFileSendStarted() - 记录文件发送开始
    • processStorCommand() - 记录上传命令处理

修改说明

  • 仅添加必要的调试代码
  • 未修改任何原有代码
  • 保留所有注释和格式

…reply: '150 ')

Minimal changes:
- Added logDebug() method to write to /sdcard/Download/builtinftp_<package>_debug.log
- Added debug logs in connectToClientDataPort(), notifyFileSendStarted(), and processStorCommand()
- Preserved all existing code and functionality
@hxcan hxcan merged commit 25073c2 into master May 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants