Skip to content

Commit

Permalink
Silence logger messages
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Münker <mail@chipmuenk.de>
  • Loading branch information
chipmuenk committed Apr 1, 2024
1 parent 8b04eab commit 523761b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
7 changes: 3 additions & 4 deletions pyfda/input_widgets/input_fixpoint_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ def process_sig_rx(self, dict_sig: dict = None) -> None:

# logger.warning(
# "SIG_RX(): vis={0}\n{1}".format(self.isVisible(), pprint_log(dict_sig)))
logger.warning(
f"SIG_RX: vis={self.isVisible()}, fx_sim={fb.fil[0]['fx_sim']}\n{pprint_log(dict_sig)}")
# logger.warning(
# f"SIG_RX: vis={self.isVisible()}, fx_sim={fb.fil[0]['fx_sim']}\n{pprint_log(dict_sig)}")
if dict_sig['id'] == id(self):
logger.warning(f'Stopped infinite loop: "{first_item(dict_sig)}"')
# logger.warning(f'Stopped infinite loop: "{first_item(dict_sig)}"')
return

# always update visibility of subwidgets and resize image, also when in float mode
Expand Down Expand Up @@ -234,7 +234,6 @@ def process_sig_rx(self, dict_sig: dict = None) -> None:
elif 'fx_sim' in dict_sig:
# --------------- init -------------------
if dict_sig['fx_sim'] == 'init':
logger.error("init fx_sim")
# fixpoint simulation has been started externally, e.g. by
# `impz.impz_init()`
if not self.fx_wdg_found:
Expand Down
6 changes: 3 additions & 3 deletions pyfda/libs/pyfda_qt_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def emit(self, dict_sig: dict = {}, sig_name: str = 'sig_tx') -> None:
if k not in DICT_SIG_KEYS:
logger.warning(f"Unknown entry '{k}':'{dict_sig[k]}' in 'dict_sig'!")
logger.warning(pprint_log(dict_sig))
if self.sender() and self.sender().objectName():
logger.info(f"this_sender_name: {self.sender().objectName()}")
# if self.sender() and self.sender().objectName():
# logger.info(f"this_sender_name: {self.sender().objectName()}")
# logger.info(f"objectName = {self.objectName()}")
if 'id' not in dict_sig:
dict_sig.update({'id': id(self)})
Expand All @@ -69,7 +69,7 @@ def emit(self, dict_sig: dict = {}, sig_name: str = 'sig_tx') -> None:
if 'object_name' not in dict_sig:
dict_sig.update({'object_name': self.objectName()})

logger.info(f"EMIT:{pprint_log(dict_sig)}")
# logger.info(f"EMIT:{pprint_log(dict_sig)}")

# Get signal (default name: `sig_tx`) from calling instance and emit it
signal = getattr(self, sig_name)
Expand Down
6 changes: 3 additions & 3 deletions pyfda/plot_widgets/plot_impz.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ def process_sig_rx(self, dict_sig=None):
- local widgets (impz_ui) and
- plot_tab_widgets() (global signals)
"""
logger.warning(
f"SIG_RX - needs_calc: {self.needs_calc} | vis: {self.isVisible()}\n"
f"{first_item(dict_sig)}")
# logger.warning(
# f"SIG_RX - needs_calc: {self.needs_calc} | vis: {self.isVisible()}\n"
# f"{first_item(dict_sig)}")

if dict_sig['id'] == id(self):
logger.warning(f'Stopped infinite loop: "{first_item(dict_sig)}"')
Expand Down

0 comments on commit 523761b

Please sign in to comment.