From 6d07acb8e571fde2421a633e10bc7d1fd3bf1b45 Mon Sep 17 00:00:00 2001 From: "Michael P. Soulier" Date: Thu, 26 Sep 2013 21:23:33 -0400 Subject: Fixing debug calls to be lazy when debug is off. --- tftpy/TftpClient.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tftpy/TftpClient.py') 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, -- cgit v1.2.1