Some more inline comments and cosmetic changes.

This commit is contained in:
Johannes Findeisen 2022-10-03 12:31:47 +02:00
commit 6b89907ee7
3 changed files with 6 additions and 6 deletions

View file

@ -14,8 +14,8 @@ def log(level, msg):
import inspect
from_stack = inspect.stack()[1]
function_name = from_stack.function
module_name = inspect.getmodule(from_stack[0]).__name__
line_number = str(from_stack.lineno)
module_name = inspect.getmodule(from_stack[0]).__name__
if level == 'critical':
logger.critical('[' + module_name + ']:[' + function_name + ']:[' + line_number + '] ' +
str(msg))