mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 01:52:56 +01:00
log: Add log_level()
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
ce347772dd
commit
2462ad8c60
1 changed files with 4 additions and 0 deletions
|
|
@ -93,6 +93,10 @@ def prio_gets_logged(prio: int) -> bool: # export
|
|||
return False
|
||||
return True
|
||||
|
||||
def log_level(s: str=None) -> int: # export
|
||||
if s is None:
|
||||
return _level
|
||||
|
||||
def get_caller_pos(up: int = 1, kwargs: Optional[dict[str, Any]] = None) -> Tuple[str, int]:
|
||||
if kwargs and 'caller' in kwargs:
|
||||
r = kwargs['caller']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue