mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Merge branch 'bug/verbose-console' into 'dev'
Fix debug logging to only display with the -v (verbose) flag See merge request crafty-controller/crafty-4!560
This commit is contained in:
commit
d084d81e35
@ -11,6 +11,7 @@
|
||||
- Fix logical issue with uploading dynamic files ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/555))
|
||||
- Fix backups failing by correctly using tz objects ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/556))
|
||||
- Bump Cryptography/pyOpenSSL for CVE-2023-23931 ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/554))
|
||||
- Fix debug logging to only display with the -v (verbose) flag ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/560))
|
||||
### Tweaks
|
||||
- Cleanup authentication helpers ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/545))
|
||||
- Optimize file upload progress WS ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/546))
|
||||
|
@ -19,6 +19,8 @@ except ModuleNotFoundError as ex:
|
||||
|
||||
|
||||
class Console:
|
||||
level = ""
|
||||
|
||||
def __init__(self):
|
||||
if "colorama" in sys.modules:
|
||||
init()
|
||||
@ -61,6 +63,7 @@ class Console:
|
||||
|
||||
@staticmethod
|
||||
def debug(message):
|
||||
if Console.level == "debug":
|
||||
date_time = Console.get_fmt_date_time()
|
||||
Console.magenta(f"[+] Crafty: {date_time} - DEBUG:\t{message}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user