Skip to content

Commit

Permalink
fix: log error on bucket-file streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Jul 2, 2024
1 parent 9a65d5c commit c89e83a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit c89e83a

Please sign in to comment.