summaryrefslogtreecommitdiffstats
path: root/decorators.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-10-04 11:16:17 -0700
committerPinapelz <yukais@pinapelz.com>2024-10-04 11:38:15 -0700
commit8484b4e0c48524faf02b087eca4b5238fc593c9b (patch)
treec90e0d0994312735f846bddc7d2fdad123ab41f7 /decorators.py
parent0385ad5a075cc636052ae3452e6977f4dfe609b2 (diff)
improve output logging
- logs to file
Diffstat (limited to 'decorators.py')
-rw-r--r--decorators.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/decorators.py b/decorators.py
deleted file mode 100644
index bc0b420..0000000
--- a/decorators.py
+++ /dev/null
@@ -1,16 +0,0 @@
-import time
-
-
-def log(message: str):
- def decorator(func):
- def wrapper(*args, **kwargs):
- print("TASK: " + message)
- start = time.time()
- result = func(*args, **kwargs)
- end = time.time()
- print(f"COMPLETE: {message} {round(end - start, 3)} seconds")
- return result
-
- return wrapper
-
- return decorator
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage