PyXPCOM_LogError should always write the error message, even if there is
no traceback or exception info. Not part of the build. git-svn-id: svn://10.0.0.236/trunk@194109 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
dcbd951906
commit
dcae2e2005
@ -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, ...)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user