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:
mhammond%skippinet.com.au 2006-04-11 06:04:23 +00:00
parent dcbd951906
commit dcae2e2005

View File

@ -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, ...)