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:
@ -2431,9 +2431,16 @@ static bool filewriter_init(
|
|||||||
NULL);
|
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;
|
goto return_succp;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lf->lf_enabled) {
|
if (lf->lf_enabled) {
|
||||||
start_msg_str = strdup("---\tLogging is enabled.\n");
|
start_msg_str = strdup("---\tLogging is enabled.\n");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user