mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Keep stderr when collecting stacktraces
This commit is contained in:
parent
0106040a2f
commit
c6c3c4347b
@ -99,7 +99,7 @@ def get_processlist(client_cmd):
|
||||
|
||||
|
||||
def get_stacktraces(server_pid):
|
||||
cmd = "gdb -batch -ex 'thread apply all backtrace' -p {} 2>/dev/null".format(server_pid)
|
||||
cmd = "gdb -batch -ex 'thread apply all backtrace' -p {}".format(server_pid)
|
||||
try:
|
||||
return subprocess.check_output(cmd, shell=True)
|
||||
except Exception as ex:
|
||||
|
Loading…
Reference in New Issue
Block a user