diff options
author | Andrew Leeming <andrew.leeming@codethink.co.uk> | 2016-08-23 12:47:31 +0100 |
---|---|---|
committer | Andrew Leeming <andrew.leeming@codethink.co.uk> | 2016-08-23 13:19:39 +0100 |
commit | 6ed7422cf5ee58df8c4f928a5ff34c1046eb42c7 (patch) | |
tree | 7a6c2092f474ff0c5b9f1e01066147de28961079 /sandboxlib/utils.py | |
parent | be1851a372cb54c129c08f97c6e5f7dda372bb47 (diff) | |
download | sandboxlib-leeming/root-logger-fix.tar.gz |
Fixed a minor bug with root loggerleeming/root-logger-fix
If the root logger is used instead of a named 'sandboxlib' logger. This causes potential issues for 3rd party tools using this library
Diffstat (limited to 'sandboxlib/utils.py')
-rw-r--r-- | sandboxlib/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sandboxlib/utils.py b/sandboxlib/utils.py index b3ec867..e9b049a 100644 --- a/sandboxlib/utils.py +++ b/sandboxlib/utils.py @@ -42,7 +42,8 @@ def find_program(program_name): argv = ['which', program_name] program_path = subprocess.check_output(argv).strip() except subprocess.CalledProcessError as e: - logging.debug("Error searching for %s: %s", program_name, e) + log = logging.getLogger('sandboxlib') + log.debug("Error searching for %s: %s", program_name, e) program_path = None if program_path is None: |