From 7b31775a6b5fe76bcf209c2d27511e5e6a320782 Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Thu, 7 Apr 2022 21:53:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E8=AE=A1=E6=97=B6?= =?UTF-8?q?=E5=99=A8=E8=A3=85=E9=A5=B0=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/decorators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/decorators.py b/app/decorators.py index d1d4dfc..f844577 100644 --- a/app/decorators.py +++ b/app/decorators.py @@ -12,11 +12,11 @@ from functools import wraps def time_it(func): @wraps(func) def wrapper(*args, **kwargs): - print('数据库文件开始下载') + print('I: 数据库文件开始下载') start = time.time() result = func(*args, **kwargs) end = time.time() - print('下载结束, 耗时 {} 秒'.format(round(end - start, 2))) + print('I: 下载结束, 耗时 {} 秒'.format(round(end - start, 2))) return result return wrapper