зеркало из https://github.com/mozilla/pjs.git
PyXPCOM_LogError should always write the error message, even if there is
no traceback or exception info. Not part of the build.
This commit is contained in:
Родитель
35b21b43d3
Коммит
e7c870d4eb
|
@ -215,9 +215,8 @@ PYXPCOM_EXPORT void PyXPCOM_LogError(const char *fmt, ...)
|
|||
PR_vsnprintf(buff, sizeof(buff), fmt, marker);
|
||||
// If we have a Python exception, also log that:
|
||||
nsCAutoString streamout(buff);
|
||||
if (PyXPCOM_FormatCurrentException(streamout)) {
|
||||
LogMessage(LOGGER_ERROR, streamout);
|
||||
}
|
||||
PyXPCOM_FormatCurrentException(streamout);
|
||||
LogMessage(LOGGER_ERROR, streamout);
|
||||
}
|
||||
|
||||
PYXPCOM_EXPORT void PyXPCOM_LogWarning(const char *fmt, ...)
|
||||
|
|
Загрузка…
Ссылка в новой задаче