diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-12-01 11:15:12 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-12-01 11:15:12 (GMT) |
commit | 09f07c9a523dce7b8d7e013857f988f727f1a72b (patch) | |
tree | ca2e8badd81609070ef4aabd1b60174da7d6a114 /plugins/pychrysalide/core | |
parent | efbf67e4af709c9e9d27c288399654848a4bfda8 (diff) |
Created an extra log category for external errors.
Diffstat (limited to 'plugins/pychrysalide/core')
-rw-r--r-- | plugins/pychrysalide/core/logs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/pychrysalide/core/logs.c b/plugins/pychrysalide/core/logs.c index 7b595c1..589315e 100644 --- a/plugins/pychrysalide/core/logs.c +++ b/plugins/pychrysalide/core/logs.c @@ -135,8 +135,9 @@ static PyObject *py_logs_log_message(PyObject *self, PyObject *args) case LMT_INFO: case LMT_PROCESS: case LMT_WARNING: - case LMT_ERROR: case LMT_BAD_BINARY: + case LMT_ERROR: + case LMT_EXT_ERROR: log_simple_message(type, msg); result = Py_None; Py_INCREF(result); @@ -235,8 +236,9 @@ static bool define_python_log_constants(PyTypeObject *obj_type) result &= PyDict_AddIntMacro(obj_type, LMT_INFO); result &= PyDict_AddIntMacro(obj_type, LMT_PROCESS); result &= PyDict_AddIntMacro(obj_type, LMT_WARNING); - result &= PyDict_AddIntMacro(obj_type, LMT_ERROR); result &= PyDict_AddIntMacro(obj_type, LMT_BAD_BINARY); + result &= PyDict_AddIntMacro(obj_type, LMT_ERROR); + result &= PyDict_AddIntMacro(obj_type, LMT_EXT_ERROR); result &= PyDict_AddIntMacro(obj_type, LMT_COUNT); return result; |