This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 6063c0c9c8 [enhancement](singal) output git commit id when the program 
coredump (#10788)
6063c0c9c8 is described below

commit 6063c0c9c83d51cf5d5bb538a81abf4adcbf8652
Author: Tiewei Fang <43782773+bepppo...@users.noreply.github.com>
AuthorDate: Wed Jul 13 08:24:58 2022 +0800

    [enhancement](singal) output git commit id when the program coredump 
(#10788)
    
    * [enhancement](singal) output git commit id when the program coredump
    
    * modift output info
---
 be/src/common/signal_handler.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/be/src/common/signal_handler.h b/be/src/common/signal_handler.h
index f8f5184415..7b49003159 100644
--- a/be/src/common/signal_handler.h
+++ b/be/src/common/signal_handler.h
@@ -39,6 +39,8 @@
 #include <boost/stacktrace.hpp>
 #include <csignal>
 #include <ctime>
+
+#include "gen_cpp/version.h"
 #ifdef HAVE_UCONTEXT_H
 #include <ucontext.h>
 #endif
@@ -254,6 +256,9 @@ void DumpTimeInfo() {
     formatter.AppendString(" try \"date -d @");
     formatter.AppendUint64(static_cast<uint64>(time_in_sec), 10);
     formatter.AppendString("\" if you are using GNU date ***\n");
+    formatter.AppendString("*** Current BE git commitID: ");
+    formatter.AppendString(DORIS_BUILD_SHORT_HASH);
+    formatter.AppendString(" ***\n");
     g_failure_writer(buf, formatter.num_bytes_written());
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to