Some more inline comments and cosmetic changes.
This commit is contained in:
parent
cfa1607eaa
commit
6b89907ee7
3 changed files with 6 additions and 6 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue