qutebrowser/qutebrowser/misc
Florian Bruhin c7f386cec0 Avoid logging in signal handlers.
If we don't do that, we can get this:

--- Logging error ---
Traceback (most recent call last):
  File ".../python3.5/logging/__init__.py", line 984, in emit
    self.flush()
  File ".../python3.5/logging/__init__.py", line 964, in flush
    self.stream.flush()
RuntimeError: reentrant call inside <_io.BufferedWriter name='<stderr>'>
Call stack:
  [...]
  File ".../qutebrowser/app.py", line 122, in qt_mainloop
    return qApp.exec_()
  File ".../qutebrowser/utils/objreg.py", line 118, in on_destroyed
    log.destroy.debug("schedule removal: {}".format(name))
  File ".../python3.5/logging/__init__.py", line 1267, in debug
    self._log(DEBUG, msg, args, **kwargs)
  File ".../python3.5/logging/__init__.py", line 1415, in _log
    self.handle(record)
  File ".../python3.5/logging/__init__.py", line 1425, in handle
    self.callHandlers(record)
  File ".../python3.5/logging/__init__.py", line 1487, in callHandlers
    hdlr.handle(record)
  File ".../python3.5/logging/__init__.py", line 855, in handle
    self.emit(record)
  File ".../python3.5/logging/__init__.py", line 984, in emit
    self.flush()
  File ".../python3.5/logging/__init__.py", line 964, in flush
    self.stream.flush()
  File ".../qutebrowser/misc/crashsignal.py", line 365, in interrupt
    log.destroy.info("Do the same again to forcefully quit.")
Message: 'Do the same again to forcefully quit.'
Arguments: ()
2015-11-18 20:21:23 +01:00
..
__init__.py Update copyright years 2015-01-03 15:51:31 +01:00
autoupdate.py Fix some splelling mistakes. 2015-10-04 15:41:42 +02:00
checkpyver.py Set messagebox = None without Tk in checkpyver. 2015-08-19 06:39:22 +02:00
cmdhistory.py Refactor saving logic, only save stuff if modified. 2015-02-01 00:43:07 +01:00
consolewidget.py Various spelling fixes. 2015-03-31 21:11:47 +02:00
crashdialog.py Fix some splelling mistakes. 2015-10-04 15:41:42 +02:00
crashsignal.py Avoid logging in signal handlers. 2015-11-18 20:21:23 +01:00
earlyinit.py Change Qt links to point to qt.io. 2015-06-12 16:59:33 +02:00
editor.py Get rid of unnecessary file.readline() calls. 2015-11-10 18:44:42 +01:00
guiprocess.py Log executed command for GUIProcess. 2015-09-11 06:24:05 +02:00
httpclient.py Fix some splelling mistakes. 2015-10-04 15:41:42 +02:00
ipc.py Change IPC warnings to debug. 2015-11-01 23:11:42 +01:00
lineparser.py Get rid of unnecessary file.readline() calls. 2015-11-10 18:44:42 +01:00
miscwidgets.py Fix some typos. 2015-06-01 22:45:40 +02:00
msgbox.py Show a message and update notifier on reports. 2015-04-10 08:09:18 +02:00
readline.py Update copyright years 2015-01-03 15:51:31 +01:00
savemanager.py Move special params to cmdutils.register decorator 2015-04-20 19:33:05 +02:00
sessions.py sessions: Logging/error message improvements. 2015-08-24 17:12:20 +02:00
split.py Remove dead ShellLexer code. 2015-08-02 13:05:19 +02:00
utilcmds.py Big refactoring of app.py. 2015-04-30 07:37:25 +02:00