plugins/python/sudo_module: add sudo.LogHandler
so python log system can be used with sudo logsystem. Loggers use it by default (the handler is set on the root logger). If that is not the intent, it can be overridden explicitly.
This commit is contained in:

committed by
Todd C. Miller

parent
34b4bb72d6
commit
c039a99c10
@@ -178,7 +178,7 @@ sudo_module_register_importblocker(void)
|
||||
}
|
||||
Py_INCREF(py_meta_path);
|
||||
|
||||
py_import_blocker_cls = sudo_module_create_class("sudo.ImportBlocker", _sudo_ImportBlocker_class_methods);
|
||||
py_import_blocker_cls = sudo_module_create_class("sudo.ImportBlocker", _sudo_ImportBlocker_class_methods, NULL);
|
||||
if (py_import_blocker_cls == NULL)
|
||||
goto cleanup;
|
||||
|
||||
|
Reference in New Issue
Block a user