title: Python logging call crashes at usesTime
body: <p>Every once in 50-100 calls to the logger, the program crashes with the following trace messages:</p>
  
  <pre><code>Mar 20 07:10:14 service.bash[7693]: Fatal Python error: Cannot recover from stack overflow.
  Mar 20 07:10:14 service.bash[7693]: Current thread 0x76fa3010 (most recent call first):
  Mar 20 07:10:14 service.bash[7693]:   File "/usr/lib/python3.5/logging/__init__.py", line 381 in usesTime
  Mar 20 07:10:14 service.bash[7693]:   File "/usr/lib/python3.5/logging/__init__.py", line 537 in usesTime
  Mar 20 07:10:14 service.bash[7693]:   File "/usr/lib/python3.5/logging/__init__.py", line 569 in format
  Mar 20 07:10:14 service.bash[7693]:   File "/usr/lib/python3.5/logging/__init__.py", line 831 in format
  Mar 20 07:10:14 service.bash[7693]:   File "/usr/lib/python3.5/logging/__init__.py", line 981 in emit
  Mar 20 07:10:14 service.bash[7693]:   File "/usr/lib/python3.5/logging/__init__.py", line 856 in handle
  Mar 20 07:10:14 service.bash[7693]:   File "/usr/lib/python3.5/logging/__init__.py", line 1488 in callHandlers
  Mar 20 07:10:14 service.bash[7693]:   File "/usr/lib/python3.5/logging/__init__.py", line 1426 in handle
  Mar 20 07:10:14 service.bash[7693]:   File "/usr/lib/python3.5/logging/__init__.py", line 1416 in _log
  Mar 20 07:10:14 service.bash[7693]:   File "/usr/lib/python3.5/logging/__init__.py", line 1280 in info
  Mar 20 07:10:14 service.bash[7693]:   File "*****************_app/base.py", line 63 in log_this
  </code></pre>
  
  <p>Any idea what could be causing this crash?</p>
  
  <p>Don't see similar or other logging calls elsewhere in the program crashing it.</p>
  
  <p>Here is the stack of the calls made to the logger:</p>
  
  <pre><code>self.info("cs={} miso={} mosi{} clk{}".format( self.csPin, self.misoPin, self.mosiPin, self.clkPin))
  |
  self.log_this("info", msg)
  |
  self.log.info(msg)
  </code></pre>
  
  <p>The logger is setup in the base class initialization routine in the following way:</p>
  
  <pre><code># Global logger is declared as a class attribute
  cls.log = logging.getLogger(cls.args["app"])
  c_handler = logging.StreamHandler()
  f_handler = logging.handlers.RotatingFileHandler(
                  cls.args["--log"],
                  maxBytes=(10**6)*int(cls.args["--logsize"]), # CLI is in MB
                  backupCount=1)
  
  
  # Create handlers
  if cls.args["--debug"]:
      cls.log.setLevel(logging.DEBUG)
      c_handler.setLevel(logging.DEBUG)
      f_handler.setLevel(logging.DEBUG)
  else:
      cls.log.setLevel(logging.INFO)
      c_handler.setLevel(logging.INFO)
      f_handler.setLevel(logging.INFO)
  
  
  # Create formatters and add it to handlers
  c_format = logging.Formatter('%(name)s: %(levelname)s: %(message)s')
  f_format = logging.Formatter('%(asctime)s: %(name)s: %(levelname)s: %(message)s')
  c_handler.setFormatter(c_format)
  f_handler.setFormatter(f_format)
  
  
  # Add handlers to the logger
  cls.log.addHandler(c_handler)
  cls.log.addHandler(f_handler)
  
  
  cls.log.info("Logger initialized")
  </code></pre>
  
  <p>Thank you.</p>