Skip to content

Commit

Permalink
suggested logging namespace correction
Browse files Browse the repository at this point in the history
  • Loading branch information
pevogam committed Feb 10, 2025
1 parent 3923f2e commit 2ee7495
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tp_folder/controls/pre_state.control
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Control for a pre-test-run environment localized state check.
import logging
logging.basicConfig(level=logging.DEBUG, format='%(module)-16.16s '
'L%(lineno)-.4d %(levelname)-5.5s| %(message)s')
logging.getLogger('avocado.job.pre').setLevel(9)
logging.getLogger('avocado.job.pre').parent = logging.getLogger('')
logging.getLogger('avocado.test').setLevel(9)
logging.getLogger('avocado.test').parent = logging.getLogger('')

# custom imports
from virttest.utils_params import Params
Expand Down
5 changes: 4 additions & 1 deletion tp_folder/controls/pre_test.control
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ logging.info("%s control file.", NAME)
# MAIN PART

logging.info(f"Added utility path {utility_path}")
log.getLogger("aexpect").parent = log.getLogger("avocado.extlib")
log.getLogger("aexpect").level = log.DEBUG
log.getLogger("guibot").level = log.DEBUG
log.getLogger("vncdotool").level = log.DEBUG
log.getLogger("pyi2ncommon").level = log.DEBUG
logging.info(f"Setting network class for state backend")
VMNetBackend.network_class = VMNetwork

Expand Down

0 comments on commit 2ee7495

Please sign in to comment.