Added a logger for more maintainable and configurable debug messages.
Fixed a bug with context setting so that all children are updated on context update.
This commit is contained in:
parent
76be0b0d23
commit
49a630e8ac
5 changed files with 28 additions and 6 deletions
1
jgui/logger/__init__.py
Normal file
1
jgui/logger/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
from jgui.logger.logger import *
|
||||
6
jgui/logger/logger.py
Normal file
6
jgui/logger/logger.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from __future__ import print_function
|
||||
from jgui.settings import DEBUG
|
||||
|
||||
def log(*args):
|
||||
if DEBUG:
|
||||
print(*args)
|
||||
Loading…
Add table
Add a link
Reference in a new issue