Skip to content

Commit

Permalink
feat: 新增日志
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhelinCheng committed Nov 25, 2022
1 parent 25dccd2 commit 6d96a53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/download/download.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author : 程哲林
* @Date : 2022-11-01 15:07:48
* @LastEditors : 程哲林
* @LastEditTime : 2022-11-25 11:00:44
* @LastEditTime : 2022-11-25 11:02:10
* @FilePath : /bilibili-downloader/src/download/download.service.ts
* @Description : 未添加文件描述
*/
Expand Down Expand Up @@ -339,7 +339,9 @@ export class DownloadService {

const fileSize = fs.statSync(pt).size;

this.logger.log(`下载信息:${bvid} ${type} ${fileSize} ${hdSize}`);
this.logger.log(
`下载信息:${bvid} ${type} ${fileSize} ${hdSize} [${url}]`,
);

const scale = fileSize / hdSize;
return scale > 0.999 && scale < 1.001;
Expand Down

0 comments on commit 6d96a53

Please sign in to comment.