File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3
3
from core .utils import checkSign
4
4
from core .api import getStatus
5
5
from core .storages import AListStorage
6
+ from core .logger import logger
6
7
from typing import Union
7
8
from aiohttp import web
8
9
import aiohttp
@@ -23,7 +24,7 @@ def init(self) -> None:
23
24
@self .route .get ("/download/{hash}" )
24
25
async def _ (
25
26
request : web .Request ,
26
- ) -> Union [ web .Response , web . FileResponse , web . StreamResponse ] :
27
+ ) -> web .Response :
27
28
self .connection += 1
28
29
writeAgent (request .headers ["User-Agent" ], 1 )
29
30
file_hash = request .match_info .get ("hash" , "" ).lower ()
@@ -37,6 +38,7 @@ async def _(
37
38
self .counters ["bytes" ] += data ["bytes" ]
38
39
self .counters ["hits" ] += data ["hits" ]
39
40
self .connection -= 1
41
+ logger .debug (response )
40
42
return response
41
43
42
44
@self .route .get ("/measure/{size}" )
You can’t perform that action at this time.
0 commit comments