2023.02.01 ohli24 버그 픽스 (.03. 코드 정리)

This commit is contained in:
2023-02-01 19:22:06 +09:00
parent 367cb85657
commit 7f00ca6055
2 changed files with 13 additions and 7 deletions

View File

@@ -17,8 +17,8 @@ def yommi_timeit(func):
end_time = time.perf_counter()
total_time = end_time - start_time
# print(f"Function {func.__name__}{args} {kwargs} Took {total_time:.4f} secs")
logger.debug(
f"Function {func.__name__}{args} {kwargs} Took {total_time:.4f} secs"
logger.opt(colors=True).debug(
f"<red>{func.__name__}{args} {kwargs}</red> function took <green>{total_time:.4f}</green>secs"
)
return result