Skip to content

Commit

Permalink
Corrected Logger case to logger in error condition (#438)
Browse files Browse the repository at this point in the history
In a less used conditional case, self.Logger was referenced, whereas in the rest of the file self.logger is used. Resulted in an exception.
  • Loading branch information
apop5 committed Oct 26, 2023
1 parent 2e82a08 commit 139e41b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edk2toollib/uefi/edk2/path_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ def __init__(self, ws: str, package_path_list: Iterable[str],
if "PYTOOL_TEMPORARILY_IGNORE_NESTED_EDK_PACKAGES" in os.environ:
warning = "PYTOOL_TEMPORARILY_IGNORE_NESTED_EDK_PACKAGES is no longer used by edk2-pytool-library, but is "\
"detected in your environment. Please remove this environment variable."
self.Logger.log(logging.WARNING, warning)
self.logger.log(logging.WARNING, warning)
if "PYTOOL_IGNORE_KNOWN_BAD_NESTED_PACKAGES" == os.environ:
warning = "PYTOOL_IGNORE_KNOWN_BAD_NESTED_PACKAGES is no longer used by edk2-pytool-library, but is " \
"detected in your environment. Please remove this environment variable."
self.Logger.log(logging.WARNING, warning)
self.logger.log(logging.WARNING, warning)

package_path_packages = {}
for package_path in self._package_path_list:
Expand Down

0 comments on commit 139e41b

Please sign in to comment.