Commit 4e366912 authored by Vadim Salavatov's avatar Vadim Salavatov Committed by intellij-monorepo-bot
Browse files

IDEA-349414 fix crash reporting condition

(cherry picked from commit 12df170b32d26c4028b25207e3f552568d851c01)

IJ-MR-129405

GitOrigin-RevId: 219a6bac4e0a0dc105ab5a622435be2e34a42a6d
parent cf35de9d
Branches unavailable Tags unavailable
No related merge requests found
Showing with 7 additions and 7 deletions
+7 -7
......@@ -556,16 +556,16 @@ private fun collectCrashInfo(pid: String, lastModified: Long): CrashInfo? {
LOG.info("Crash file $file is too big to report")
return@firstNotNullOfOrNull null
}
val content = Files.readString(file.toPath())
// TODO: maybe we need to notify the user
// see https://youtrack.jetbrains.com/issue/IDEA-258128
if (content.contains("fuck_the_regulations")) {
return@firstNotNullOfOrNull null
}
return@firstNotNullOfOrNull content
return@firstNotNullOfOrNull Files.readString(file.toPath())
}
}.getOrLogException(LOG)
// TODO: maybe we need to notify the user
// see https://youtrack.jetbrains.com/issue/IDEA-258128
if (javaCrashContent != null && javaCrashContent.contains("fuck_the_regulations")) {
return null
}
val jbrErrContent = runCatching {
findExtraLogFile(pid, lastModified)?.let { Files.readString(it) }
}.getOrLogException(LOG)
......
Supports Markdown
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