mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 22:14:53 +02:00
Fix unhandled exceptions not being printed to stderr on macOS when run from launch services and using prewarming
This commit is contained in:
@@ -59,8 +59,15 @@ log_error_string(PyObject *self UNUSED, PyObject *args) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
set_use_os_log(PyObject *self UNUSED, PyObject *args) {
|
||||
use_os_log = PyObject_IsTrue(args) ? true : false;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static PyMethodDef module_methods[] = {
|
||||
METHODB(log_error_string, METH_VARARGS),
|
||||
METHODB(set_use_os_log, METH_O),
|
||||
{NULL, NULL, 0, NULL} /* Sentinel */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user