Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions configs/sim/gmoccapy/gmoccapy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ DISPLAY = gmoccapy -i
# VERBOSE -v
# ERROR -q

VCP_LOGLEVEL = ERROR

# Cycle time, in milliseconds, that display will sleep between polls
CYCLE_TIME = 100

Expand Down
15 changes: 14 additions & 1 deletion lib/python/qtvcp/qt_istat.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,20 @@ def __init__(self):
self.ICON = ""
# this is updated in qtvcp.py on startup
self.IS_SCREEN = False


log_level = self.INI.find('DISPLAY', 'VCP_LOGLEVEL')
if log_level == "DEBUG":
log.setLevel(logger.DEBUG)
elif log_level == "INFO":
log.setLevel(logger.INFO)
elif log_level == "WARNING":
log.setLevel(logger.WARNING)
elif log_level == "ERROR":
log.setLevel(logger.ERROR)
elif log_level == "CRITICAL":
log.setLevel(logger.CRITICAL)
elif log_level == "VERBOSE":
log.setLevel(logger.VERBOSE)

def update(self, ini=INIPATH):
#print('path ini',ini)
Expand Down
2 changes: 1 addition & 1 deletion src/hal/user_comps/gladevcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
# We have do do this before importing other modules because on import
# they set up their own loggers as children of the base logger.
from qtvcp import logger
LOG = logger.initBaseLogger('GladeVCP', log_file=None, log_level=logger.INFO)
LOG = logger.initBaseLogger('GladeVCP', log_file=None, log_level=logger.WARNING)

import gladevcp.makepins
from gladevcp.gladebuilder import GladeBuilder
Expand Down