mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-21 01:31:06 +01:00
log warning & error etc
This commit is contained in:
@@ -48,7 +48,7 @@ def filter_sensitive_fields(record):
|
||||
|
||||
# Remove ANSI escape sequences - colours & bold
|
||||
record.msg = re.sub(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])', '', record.msg)
|
||||
return record.levelno <= logging.INFO
|
||||
return True
|
||||
|
||||
|
||||
logger = setup_logger()
|
||||
|
||||
Reference in New Issue
Block a user