From 2604012e163e0a6566d277dba081bc8b0e21ed66 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 6 Nov 2020 16:53:38 +0800 Subject: [PATCH] bugfix --- ahserver/processorResource.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index 189e05b..8818542 100644 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -21,6 +21,7 @@ from appPublic.jsonConfig import getConfig from appPublic.MiniI18N import getI18N from appPublic.dictObject import DictObject, multiDict2Dict from appPublic.timecost import TimeCost +from appPublic.timeUtils import timestampstr from .baseProcessor import getProcessor from .xlsxdsProcessor import XLSXDataSourceProcessor @@ -122,7 +123,7 @@ class ProcessorResource(StaticResource,Url2File): t = TimeCost(name) with t: x = await self._handle1(request) - print(name,':', 'time cost=', t.end_time - t.begin_time) + print(timestampstr(),':',name,':', 'time cost=', t.end_time - t.begin_time) return x async def _handle1(self,request:Request) -> StreamResponse: