Keep stderr when collecting stacktraces

This commit is contained in:
Alexander Kazakov 2020-01-27 20:47:05 +03:00
parent 0106040a2f
commit c6c3c4347b

View File

@ -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: