Commit 62bb80ad authored by thestig's avatar thestig Committed by Commit bot

Breakpad Linux: Add some debug logging for crash id generation failures.

BUG=415382

Review URL: https://codereview.chromium.org/583873003

Cr-Commit-Position: refs/heads/master@{#295756}
parent 1c2b1de6
...@@ -1082,12 +1082,18 @@ void HandleCrashReportId(const char* buf, size_t bytes_read, ...@@ -1082,12 +1082,18 @@ void HandleCrashReportId(const char* buf, size_t bytes_read,
WriteNewline(); WriteNewline();
if (!IsValidCrashReportId(buf, bytes_read, expected_len)) { if (!IsValidCrashReportId(buf, bytes_read, expected_len)) {
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
static const char msg[] = "Crash_reporter failed to process crash report"; static const char msg[] =
"System crash-reporter failed to process crash report.";
#else #else
static const char msg[] = "Failed to get crash dump id."; static const char msg[] = "Failed to get crash dump id.";
#endif #endif
WriteLog(msg, sizeof(msg) - 1); WriteLog(msg, sizeof(msg) - 1);
WriteNewline(); WriteNewline();
static const char id_msg[] = "Report Id: ";
WriteLog(id_msg, sizeof(id_msg) - 1);
WriteLog(buf, bytes_read);
WriteNewline();
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment