Fixed logging format issues detected by the latest code style checker additions.

Sun, 11 Mar 2018 15:40:15 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 11 Mar 2018 15:40:15 +0100
changeset 6181
2ae7e332b941
parent 6180
8d72871c16ba
child 6182
f293e95b914d

Fixed logging format issues detected by the latest code style checker additions.

Network/IRC/IrcWidget.py file | annotate | diff | comparison | revisions
eric6.py file | annotate | diff | comparison | revisions
--- a/Network/IRC/IrcWidget.py	Sun Mar 11 15:27:23 2018 +0100
+++ b/Network/IRC/IrcWidget.py	Sun Mar 11 15:40:15 2018 +0100
@@ -526,7 +526,7 @@
                 for line in self.__buffer.splitlines():
                     line = line.strip()
                     if line:
-                        logging.debug("<IRC> " + line)
+                        logging.debug("<IRC> %s", line)
                         handled = False
                         # step 1: give channels a chance to handle the message
                         for channel in self.__channelList:
--- a/eric6.py	Sun Mar 11 15:27:23 2018 +0100
+++ b/eric6.py	Sun Mar 11 15:40:15 2018 +0100
@@ -372,7 +372,7 @@
     # start the event loop
     inMainLoop = True
     res = app.exec_()
-    logging.debug("Shutting down, result {0:d}".format(res))
+    logging.debug("Shutting down, result %d", res)
     logging.shutdown()
     sys.exit(res)
 

eric ide

mercurial