From 91759ef32323947d0dbe17b52fb61e89e4f96f14 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Fri, 30 Sep 2016 10:48:04 +0300 Subject: [PATCH] Use MXS_ALERT when logging the stack of a crash As MXS_ERROR is throttled you'd risk missing some part of the stack. --- server/core/gateway.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/core/gateway.c b/server/core/gateway.c index 5eed47fc2..657c37add 100644 --- a/server/core/gateway.c +++ b/server/core/gateway.c @@ -365,9 +365,9 @@ sigfatal_handler(int i) GATEWAY_CONF* cnf = config_get_global_options(); fprintf(stderr, "\n\nMaxScale "MAXSCALE_VERSION" received fatal signal %d\n", i); - MXS_ERROR("Fatal: MaxScale "MAXSCALE_VERSION" received fatal signal %d. Attempting backtrace.", i); + MXS_ALERT("Fatal: MaxScale "MAXSCALE_VERSION" received fatal signal %d. Attempting backtrace.", i); - MXS_ERROR("Commit ID: %s System name: %s " + MXS_ALERT("Commit ID: %s System name: %s " "Release string: %s", maxscale_commit, cnf->sysname, cnf->release_string); @@ -380,7 +380,7 @@ sigfatal_handler(int i) { for (n = 0; n < count; n++) { - MXS_ERROR(" %s\n", symbols[n]); + MXS_ALERT(" %s\n", symbols[n]); } MXS_FREE(symbols); }