This repository was archived by the owner on Jun 30, 2025. It is now read-only.
Commit 039298a
committed
Restore "Check failure stack trace" message on LOG(FATAL)
#1074 refactored some of the code to
enable the failure function to throw. This made it so when
the LogMessageFatal class was used, the error ended up being printed
differently.
Before:
LOG_AT_LEVEL(google::LogSeverity::FATAL) << "Crash: Hello world!"; ->
F20240621 18:12:44.710584 139620827212672 log_demo.cc:16] Crash: Hello world!
*** Check failure stack trace: ***
@ 0x559e2704711a
@ 0x7efc01fac24a
@ 0x7efc01fac305
@ 0x559e27046dd5
Aborted
LOG(FATAL) << "Crash: Hello world!"; ->
F20240621 18:13:05.760556 140518290856832 log_demo.cc:16] Crash: Hello world!
@ 0x55cdc2475130
@ 0x7fccf6fb324a
@ 0x7fccf6fb3305
@ 0x55cdc2474df5
Aborted
With this patch, they both produce the same output.
Signed-off-by: Austin Schuh <[email protected]>1 parent 45f99f5 commit 039298a
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2541 | 2541 | | |
2542 | 2542 | | |
2543 | 2543 | | |
2544 | | - | |
2545 | | - | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
2546 | 2549 | | |
2547 | 2550 | | |
2548 | 2551 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1586 | 1586 | | |
1587 | 1587 | | |
1588 | 1588 | | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
0 commit comments