Logging changes to try to debug #223

This commit is contained in:
Keith Edmunds 2024-03-01 11:07:42 +00:00
parent 1753534e20
commit ab867c1a67
4 changed files with 7 additions and 7 deletions

View File

@ -38,7 +38,7 @@ class InfoTabs(QTabWidget):
"""Search Songfacts for title"""
slug = slugify(title, replacements=([["'", ""]]))
log.info(f"Songfacts Infotab for {title=}")
log.error(f"Songfacts Infotab for {title=}")
url = f"https://www.songfacts.com/search/songs/{slug}"
self.open_tab(url, title)
@ -47,7 +47,7 @@ class InfoTabs(QTabWidget):
"""Search Wikipedia for title"""
str = urllib.parse.quote_plus(title)
log.info(f"Wikipedia Infotab for {title=}")
log.error(f"Wikipedia Infotab for {title=}")
url = f"https://www.wikipedia.org/w/index.php?search={str}"
self.open_tab(url, title)

View File

@ -44,7 +44,7 @@ class FadeTrack(QRunnable):
sleep(1 / Config.FADEOUT_STEPS_PER_SECOND)
self.player.stop()
log.error(f"Releasing player {self.player=}")
log.debug(f"Releasing player {self.player=}")
self.player.release()

View File

@ -701,7 +701,7 @@ class Window(QMainWindow, Ui_MainWindow):
so we need to disable it here while editing.
"""
log.info(f"enable_escape({enabled=})")
log.debug(f"enable_escape({enabled=})")
self.action_Clear_selection.setEnabled(enabled)
@ -1461,7 +1461,7 @@ class Window(QMainWindow, Ui_MainWindow):
self.playing = False
else:
# Return if not playing
log.error("stop_playing() called but not playing")
log.info("stop_playing() called but not playing")
return
# Stop/fade track

View File

@ -596,7 +596,7 @@ class PlaylistTab(QTableView):
row does not have a track, return empty string.
"""
log.info("get_selected_row_track_path() called")
log.debug("get_selected_row_track_path() called")
model_row_number = self.source_model_selected_row_number()
if model_row_number is None:
@ -610,7 +610,7 @@ class PlaylistTab(QTableView):
def get_selected_rows(self) -> List[int]:
"""Return a list of model-selected row numbers sorted by row"""
log.info("get_selected_rows() called")
log.debug("get_selected_rows() called")
# Use a set to deduplicate result (a selected row will have all
# items in that row selected)