forked from apache/incubator-pegasus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SKV-714] fix: support core dump for fatal logging in simple_logger::…
…dsn_logv and call fatal logging exactly once for the assertion (apache#1580) 社区pr: apache#1580 和社区代码不太一样的是, 2.4.0的断言还要支持c风格的format string (dassert), 就还要用到snprintf, 但snprintf又要给一个char类型的固定大小的buffer. 因此 简单起见, dassert还是打印两行日志, 第一行是error级别的日志, 第二行是fatal级别 的日志. apache#1579 Following fixes are included in this PR to solve the problems: - support core dump for fatal logging in `simple_logger::dsn_logv`; - call fatal logging exactly once for the assertion macros `CHECK*`; - add fail point to keep the logging test running without termination.
- Loading branch information
王聃
committed
Aug 25, 2023
1 parent
ca7fe1a
commit 9f3db0d
Showing
5 changed files
with
92 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters