diff options
author | Saturneric <[email protected]> | 2023-02-16 17:46:37 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-02-16 17:46:37 +0000 |
commit | d9142776de351c8a383ea85865293a2bd2add573 (patch) | |
tree | e94ce97e62e214a3114e0b0e140b5782dd576766 /src/signal.cpp | |
parent | fix: solve build problem on windows platform (diff) | |
download | GpgFrontend-d9142776de351c8a383ea85865293a2bd2add573.tar.gz GpgFrontend-d9142776de351c8a383ea85865293a2bd2add573.zip |
fix: solve logging framework issues on windows
Diffstat (limited to 'src/signal.cpp')
-rw-r--r-- | src/signal.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/signal.cpp b/src/signal.cpp index 09ac48c0..da4dfb39 100644 --- a/src/signal.cpp +++ b/src/signal.cpp @@ -43,7 +43,8 @@ extern jmp_buf recover_env; */ void handle_signal(int sig) { static int _repeat_handle_num = 1, last_sig = sig; - SPDLOG_DEBUG("signal caught {}", sig); + // SPDLOG_DEBUG("signal caught {}", sig); + std::cout << "signal caught" << sig; if (last_sig == sig) _repeat_handle_num++; @@ -51,9 +52,8 @@ void handle_signal(int sig) { _repeat_handle_num = 1, last_sig = sig; if (_repeat_handle_num > 3) { - SPDLOG_DEBUG( - "The same signal appears three times, execute the termination " - "operation. "); + std::cout << "The same signal appears three times," + << "execute the termination operation." << sig; exit(-1); } |