summaryrefslogtreecommitdiff
path: root/tftpy/TftpClient.py
diff options
context:
space:
mode:
authorMichael P. Soulier <msoulier@digitaltorque.ca>2013-09-26 21:23:33 -0400
committerMichael P. Soulier <msoulier@digitaltorque.ca>2013-09-26 21:23:33 -0400
commit6d07acb8e571fde2421a633e10bc7d1fd3bf1b45 (patch)
tree31be0cf945491c3b3293713f6939b5378dcda7b5 /tftpy/TftpClient.py
parent0cab8c3e2d9ae5730d099dc53d28aaba9e72d254 (diff)
downloadtftpy-6d07acb8e571fde2421a633e10bc7d1fd3bf1b45.tar.gz
Fixing debug calls to be lazy when debug is off.
Diffstat (limited to 'tftpy/TftpClient.py')
-rw-r--r--tftpy/TftpClient.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tftpy/TftpClient.py b/tftpy/TftpClient.py
index f84d801..a935b34 100644
--- a/tftpy/TftpClient.py
+++ b/tftpy/TftpClient.py
@@ -38,10 +38,10 @@ class TftpClient(TftpSession):
Note: If output is a hyphen, stdout is used."""
# We're downloading.
log.debug("Creating download context with the following params:")
- log.debug("host = %s, port = %s, filename = %s, output = %s"
- % (self.host, self.iport, filename, output))
- log.debug("options = %s, packethook = %s, timeout = %s"
- % (self.options, packethook, timeout))
+ log.debug("host = %s, port = %s, filename = %s, output = %s",
+ self.host, self.iport, filename, output)
+ log.debug("options = %s, packethook = %s, timeout = %s",
+ self.options, packethook, timeout)
self.context = TftpContextClientDownload(self.host,
self.iport,
filename,