From 6d8a7111cb9877efa01aaa6186fff12a03f2f62a Mon Sep 17 00:00:00 2001 From: Emmanuel Blot Date: Thu, 5 Sep 2019 17:08:57 +0200 Subject: [PATCH] Fix log messages --- pybootd/tftpd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pybootd/tftpd.py b/pybootd/tftpd.py index 0ec6b45..c548526 100644 --- a/pybootd/tftpd.py +++ b/pybootd/tftpd.py @@ -347,12 +347,12 @@ class TftpConnection(object): else: try: if self.is_url(resource): - self.log.info("Sending resource '%s'" % resource) self.file = urlopen(resource) + self.log.info("Sending resource '%s'" % resource) else: resource = os.path.realpath(resource) - self.log.info("Sending file '%s'" % resource) self.file = open(resource, 'rb') + self.log.info("Sending file '%s'" % resource) except Exception as exc: self.send_error(TftpError.FILE_NOT_FOUND, 'Cannot open resource')