[virt-bootstrap] [PATCH 5/7] pylint: Resolve logging-not-lazy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Specify string format arguments as logging function parameters
(logging-not-lazy)

https://docs.python.org/3/library/logging.html#logging.Logger.debug

Signed-off-by: Radostin Stoyanov <rstoyanov1@xxxxxxxxx>
---
 src/virtBootstrap/sources/docker_source.py | 2 +-
 src/virtBootstrap/sources/file_source.py   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/virtBootstrap/sources/docker_source.py b/src/virtBootstrap/sources/docker_source.py
index 30a3e2e..ff96078 100644
--- a/src/virtBootstrap/sources/docker_source.py
+++ b/src/virtBootstrap/sources/docker_source.py
@@ -319,7 +319,7 @@ class DockerSource(object):
         else:
             self.progress("Download and extract completed!", value=100,
                           logger=logger)
-            logger.info("Files are stored in: " + dest)
+            logger.info("Files are stored in: %s", dest)
 
         finally:
             # Clean up
diff --git a/src/virtBootstrap/sources/file_source.py b/src/virtBootstrap/sources/file_source.py
index 44f4fa6..be741ea 100644
--- a/src/virtBootstrap/sources/file_source.py
+++ b/src/virtBootstrap/sources/file_source.py
@@ -96,4 +96,4 @@ class FileSource(object):
 
         self.progress("Extraction completed successfully!", value=100,
                       logger=logger)
-        logger.info("Files are stored in: " + dest)
+        logger.info("Files are stored in: %s", dest)
-- 
2.14.3

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux