If opening any of the log files fail, MaxScale doesn't start before the cause has been removed. Added informative error message which is to be printed to standard error output.

This commit is contained in:
VilhoRaatikka 2014-10-30 21:19:26 +02:00
parent bb0fc97f00
commit 5b80cf3032

View File

@ -2431,9 +2431,16 @@ static bool filewriter_init(
NULL);
}
if (fw->fwr_file[id] == NULL) {
if (fw->fwr_file[id] == NULL)
{
fprintf(stderr,
"Error : opening %s failed, %s. Exiting "
"MaxScale\n",
lf->lf_full_file_name,
strerror(errno));
goto return_succp;
}
if (lf->lf_enabled) {
start_msg_str = strdup("---\tLogging is enabled.\n");
} else {