Skip to content

Commit

Permalink
Generate logging messages for Mac debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
krzywon committed Oct 22, 2024
1 parent 5b53850 commit b010fb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1890,6 +1890,8 @@ def onHelp(self):
"""
regen_in_progress = False
help_location = self.getHelpLocation(HELP_DIRECTORY_LOCATION)
logger.info(f"The base help directory should be at {HELP_DIRECTORY_LOCATION}.")
logger.info(f"Attempting to open {help_location}.")
if regen_in_progress is False:
self.parent.showHelp(help_location)

Expand Down
2 changes: 2 additions & 0 deletions src/sas/qtgui/Utilities/DocViewWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def __init__(self, source: Path = None):
self.setWindowTitle("Documentation Viewer")

# Necessary globals
logging.info(f"Attempting to load {source} in the help window.")
self.source: Path = Path(source)
self.regen_in_progress: bool = False
self.thread: Optional[CalcThread] = None
Expand Down Expand Up @@ -226,6 +227,7 @@ def loadHtml(self):
"""Loads the HTML file specified when this python is called from another part of the program."""
# Ensure urls are properly processed before passing into widget
url = self.processUrl()
logging.info(f"The URL that is being processed is {url}.")
settings = self.webEngineViewer.settings()
# Allows QtWebEngine to access MathJax and code highlighting APIs
settings.setAttribute(QtWebEngineCore.QWebEngineSettings.LocalContentCanAccessRemoteUrls, True)
Expand Down

0 comments on commit b010fb9

Please sign in to comment.