Skip to content

Commit 4043af5

Browse files
committed
qtvcp -indicatedMixIn: fix LOG message error
The logging library was not initialized
1 parent df497fb commit 4043af5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/python/qtvcp/widgets/indicatorMixIn.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
from qtvcp.widgets.widget_baseclass import (_HalWidgetBase)
44
from qtvcp.lib.aux_program_loader import Aux_program_loader as _loader
55
from qtvcp.core import Action, Status, Info
6+
from qtvcp import logger
67
import hal
78

89
AUX_PRGM = _loader()
910
ACTION = Action()
1011
STATUS = Status()
1112
INFO = Info()
13+
LOG = logger.getLogger(__name__)
14+
15+
# Force the log level for this module
16+
# LOG.setLevel(logger.INFO) # One of DEBUG, INFO, WARNING, ERROR, CRITICAL
1217

1318
# LED indicator on the right corner
1419
class IndicatedMixIn( _HalWidgetBase):

0 commit comments

Comments
 (0)