Updated common.py
Changed value name from 'NORMAL' to 'INFO'.
This commit is contained in:
parent
3083aa9b93
commit
a03342d81c
|
|
@ -14,7 +14,7 @@ class LogLevel:
|
||||||
|
|
||||||
Higher `int` value means higher severity of level for logging.
|
Higher `int` value means higher severity of level for logging.
|
||||||
"""
|
"""
|
||||||
NORMAL = 0
|
INFO = 0
|
||||||
PASS = 1
|
PASS = 1
|
||||||
DEBUG = 2
|
DEBUG = 2
|
||||||
WARN = 3
|
WARN = 3
|
||||||
|
|
@ -49,4 +49,4 @@ def is_path_spec(path_spec: str) -> bool:
|
||||||
## perform a regex match to ensure that the given path is a
|
## perform a regex match to ensure that the given path is a
|
||||||
## valid pathspec for the system.
|
## valid pathspec for the system.
|
||||||
return bool(re.match(__REGEX_PAT, path_spec.strip(r"\"'"))
|
return bool(re.match(__REGEX_PAT, path_spec.strip(r"\"'"))
|
||||||
or re.match(r'^[\w\d\-_\.]+$', path_spec.strip(r"\"'")))
|
or re.match(r'^[\w\d\-_\.]+$', path_spec.strip(r"\"'")))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user