Added more details to log output when MaxScale receives a fatal signal.
This commit is contained in:
@ -388,12 +388,16 @@ sigfatal_handler (int i)
|
||||
_exit(1);
|
||||
}
|
||||
fatal_handling = 1;
|
||||
|
||||
fprintf(stderr, "\n\nMaxScale received fatal signal %d\n", i);
|
||||
GATEWAY_CONF* cnf = config_get_global_options();
|
||||
fprintf(stderr, "\n\nMaxScale "MAXSCALE_VERSION" received fatal signal %d\n", i);
|
||||
|
||||
LOGIF(LE, (skygw_log_write_flush(
|
||||
LOGFILE_ERROR,
|
||||
"Fatal: MaxScale received fatal signal %d. Attempting backtrace.", i)));
|
||||
"Fatal: MaxScale "MAXSCALE_VERSION" received fatal signal %d. Attempting backtrace.", i)));
|
||||
|
||||
skygw_log_write_flush(LE,"Commit ID: "MAXSCALE_COMMIT" System name: %s "
|
||||
"Release string: %s Embedded library version: %s",
|
||||
cnf->sysname,cnf->release_string,cnf->version_string);
|
||||
|
||||
{
|
||||
void *addrs[128];
|
||||
@ -1148,7 +1152,7 @@ int main(int argc, char **argv)
|
||||
|
||||
case 'v':
|
||||
rc = EXIT_SUCCESS;
|
||||
printf("%s\n",MAXSCALE_VERSION);
|
||||
printf("MaxScale %s\n",MAXSCALE_VERSION);
|
||||
goto return_main;
|
||||
|
||||
case 'l':
|
||||
|
||||
Reference in New Issue
Block a user