diff --git a/packages/server-storage/src/http/controllers/bucket-file/handlers/stream.ts b/packages/server-storage/src/http/controllers/bucket-file/handlers/stream.ts index 5c26ca697..1cd97cbb0 100644 --- a/packages/server-storage/src/http/controllers/bucket-file/handlers/stream.ts +++ b/packages/server-storage/src/http/controllers/bucket-file/handlers/stream.ts @@ -44,5 +44,8 @@ export async function executeBucketFileRouteStreamHandler(req: Request, res: Res stream.on('end', () => { useLogger().debug(`Streamed file ${entity.hash} (${id}) of ${bucketName}`); }); + stream.on('error', (err) => { + useLogger().debug(err); + }); stream.pipe(res); }