mirror of
https://github.com/TeamAmaze/AmazeFileManager.git
synced 2026-10-16 20:51:21 +08:00
fix: log HybridFile stream close errors with LOG.error
Replace e.printStackTrace() when closing SFTP read-ahead streams. Matches existing SLF4J usage in HybridFile. Fixes TeamAmaze/AmazeFileManager#2755
This commit is contained in:
@@ -1117,7 +1117,7 @@ public class HybridFile {
|
||||
LOG.debug("Closing input stream for {}", getPath());
|
||||
super.close();
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
LOG.error("Error closing input stream for {}", getPath(), e);
|
||||
} finally {
|
||||
LOG.debug("Closing client for {}", getPath());
|
||||
rf.close();
|
||||
|
||||
Reference in New Issue
Block a user