Skip to content

WIP: Add verbose logging to Zipscript for exceptions#513

Open
tsautier wants to merge 2 commits into
drftpd-ng:masterfrom
tsautier:feat/issue-168-zipscript-logging
Open

WIP: Add verbose logging to Zipscript for exceptions#513
tsautier wants to merge 2 commits into
drftpd-ng:masterfrom
tsautier:feat/issue-168-zipscript-logging

Conversation

@tsautier

@tsautier tsautier commented Jan 14, 2026

Copy link
Copy Markdown

Problem

When SFV files are missing, unreadable, or when slaves are unavailable during a list operation, ZipscriptList silently catches exceptions or logs generic warnings. This makes diagnosing broken releases or configuration issues extremely difficult.

Solution

Enhanced logging in exception catch blocks to provide clear, actionable feedback without spamming the logs unnecessarily.

Changes Made

  • Modified ZipscriptList.java:
    • FileNotFoundException (MSFV): Now logs at DEBUG level ("No SFV file found") instead of being silent.
    • IOException (SFV Read): Now logs at WARN level with stack trace, allowing diagnosis of permission/corruption issues.
    • SlaveUnavailableException: Fixed malformed log message (added missing space in "in{}").
    • FileNotFoundException (Dir Deleted): Added DEBUG log to indicate directory race conditions.

Fixes: #168

Added debug logging for FileNotFoundException to allow diagnosing missing SFVs.

Added warn logging with stack trace for IOException reading SFVs.

Improved log message formatting for slave availability issues.
@tsautier

Copy link
Copy Markdown
Author

@mvangoor @hrxcodes for review

@tsautier
tsautier force-pushed the feat/issue-168-zipscript-logging branch from 46e2b91 to d9b09cc Compare January 14, 2026 23:05
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.

Add more verbose logging to Zipscript for exceptions

1 participant