mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Do not log ECONNRESET errors when serving transcoded video files (#4099)
This commit is contained in:
@@ -266,7 +266,7 @@ func (sm *StreamManager) getTranscodeStream(ctx *fsutil.LockContext, options Tra
|
|||||||
// process killing should be handled by command context
|
// process killing should be handled by command context
|
||||||
|
|
||||||
_, err := io.Copy(w, stdout)
|
_, err := io.Copy(w, stdout)
|
||||||
if err != nil && !errors.Is(err, syscall.EPIPE) {
|
if err != nil && !errors.Is(err, syscall.EPIPE) && !errors.Is(err, syscall.ECONNRESET) {
|
||||||
logger.Errorf("[transcode] error serving transcoded video file: %v", err)
|
logger.Errorf("[transcode] error serving transcoded video file: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user