[master 12/22] Minor cleanups in set_up_logging()

vathpela installerbot-noreply at redhat.com
Wed Oct 28 15:55:12 UTC 2015


From: Peter Jones <pjones at redhat.com>

This just fixes up some minor "make check" problems; apologies for not
having them in the previous commit.

Signed-off-by: Peter Jones <pjones at redhat.com>
---
 blivet/util.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/util.py b/blivet/util.py
index 6a5652f..0f43b2c 100644
--- a/blivet/util.py
+++ b/blivet/util.py
@@ -526,7 +526,7 @@ def set_up_logging(log_dir="/tmp", log_prefix="blivet"):
     program_log.setLevel(logging.DEBUG)
 
     def make_handler(path, prefix, level):
-        log_file = "%s/%s.log" % (path, log)
+        log_file = "%s/%s.log" % (path, prefix)
         log_file = os.path.realpath(log_file)
         handler = logging.FileHandler(log_file)
         handler.setLevel(level)


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/b1c54f666db51eb08f70ea91b89bab97b27e021a


More information about the anaconda-patches mailing list