This commit is contained in:
yumoqing 2022-06-23 23:31:00 +08:00
parent d270dd22e3
commit 97d0fc04b3
2 changed files with 6 additions and 4 deletions

View File

@ -136,10 +136,10 @@ class ProcessorResource(AppLogger, StaticResource,Url2File):
x = await self._handle1(request) x = await self._handle1(request)
except Exception as e: except Exception as e:
self.error(f'{name}:error={e}') self.error(f'{name}:error={e}')
print_exc()
x = e x = e
self.info(f'{name}:time cost={t.end_time - t.begin_time}') self.info(f'{name}:time cost={t.end_time - t.begin_time}')
if not isinstance(x, StreamResponse): if not isinstance(x, StreamResponse):
self.error(f'x type={type(x)}error({str(x)}) happend')
return HTTPException return HTTPException
return x return x

View File

@ -5,8 +5,10 @@
# fixed bug in restful.py delete import _WebHandler from aiohttp. web_urldispatcher # fixed bug in restful.py delete import _WebHandler from aiohttp. web_urldispatcher
# __version__ = '0.2.13' # __version__ = '0.2.13'
# use AppLogger in appPublic.app_logger to output log # use AppLogger in appPublic.app_logger to output log
__version__ = '0.3.0' # __version__ = '0.3.0'
# fix bug in _handle() function in processorResource.py # fix bug in _handle() function in processorResource.py
__version__ = '0.3.1' # __version__ = '0.3.1'
# fix bug in _handle() function in processorResource.py # fix bug in _handle() function in processorResource.py
__version__ = '0.3.2' # __version__ = '0.3.2'
# fix bug in _handle() function in processorResource.py
__version__ = '0.3.3'