Bug 1324024 - unable to see fprintf on assertion due to stdout vs stderr. r=ted

MozReview-Commit-ID: EswlrLCWps4
This commit is contained in:
Joel Maher 2016-12-19 11:31:01 -05:00
Родитель a4cdc9fbb4
Коммит 5b50e3503d
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -677,10 +677,10 @@ InitLog(const char* aEnvVar, const char* aMsg, FILE** aResult)
if (stream) {
MozillaRegisterDebugFD(fileno(stream));
*aResult = stream;
fprintf(stdout, "### %s defined -- logging %s to %s\n",
fprintf(stderr, "### %s defined -- logging %s to %s\n",
aEnvVar, aMsg, fname.get());
} else {
fprintf(stdout, "### %s defined -- unable to log %s to %s\n",
fprintf(stderr, "### %s defined -- unable to log %s to %s\n",
aEnvVar, aMsg, fname.get());
MOZ_ASSERT(false, "Tried and failed to create an XPCOM log");
}