Skip to content

Commit

Permalink
Better logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Davis authored and Luke Davis committed Jul 14, 2023
1 parent e48a8fb commit 616ec04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions addon/globalPlugins/versionCollector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ def addToCache(app: _AppData, checked: bool = False) -> None:
global _dirtyCache, _appDataCache
if not checked:
if isCached(app):
raise RuntimeError(f"Tried to add an already cached app to the cache! {app}")
raise RuntimeError(f"Tried to add an already cached app to the cache! {app.name}")
# Adding . . .
_appDataCache.append(app)
_dirtyCache = True
log.debug(f"Added an app to the cache. {app}")
log.debug(f'Added an {"add-on" if app.isAddon else "app"} to the cache: {app.name}.')

def _showState(message: Optional[str] = None) -> None:
"""A debugging function which writes everything the add-on knows to a browseableMessage.
Expand Down Expand Up @@ -159,8 +159,8 @@ def onAppSwitch(self) -> None:
obj = api.getForegroundObject()
# Handle a strange case. This is mentioned in core code. May not be complete solution. FixMe
if obj.processHandle == 0:
log.debug("\tRan into the obj.processHandle == 0 situation. Not recording a new app.")
return
log.debug("\t\tRan into the obj.processHandle == 0 situation. Recording a new app anyway.")
#return
currentApp: _AppData = self.normalizeAppInfo(
getattr(obj.appModule, "appName", None),
getattr(obj.appModule, "productName", None),
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _(arg):
"addon_description": _("""Keeps a record of all software names and versions used while running NVDA.
Provides a list that can be copied/exported for diagnostics and support."""),
# version
"addon_version": "23.00.05",
"addon_version": "23.00.051",
# Author(s)
"addon_author": "Luke Davis <XLTechie@newanswertech.com>",
# URL for the add-on documentation support
Expand Down

0 comments on commit 616ec04

Please sign in to comment.