title: logging.debug error during string formatting
body: <p>I am trying to print a variable using <code>logging.debug</code> and running into below error,how to fix it?</p>
  
  <pre><code>logging.debug('ATTEMPTS:{0}',attempts)
  </code></pre>
  
  <p>Error:-</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Python27\lib\logging\__init__.py", line 846, in emit
      msg = self.format(record)
    File "C:\Python27\lib\logging\__init__.py", line 723, in format
      return fmt.format(record)
    File "C:\Python27\lib\logging\__init__.py", line 464, in format
      record.message = record.getMessage()
    File "C:\Python27\lib\logging\__init__.py", line 328, in getMessage
      msg = msg % self.args
  TypeError: not all arguments converted during string formatting
  </code></pre>