Remove log initialization form print_log_n_stderr
The log manager must not be initialized twice. If an error is to be logged to a file, the log manager has already been initialized.
This commit is contained in:
@ -727,8 +727,6 @@ static void print_log_n_stderr(
|
|||||||
int eno) /*< errno, if it is set, zero, otherwise */
|
int eno) /*< errno, if it is set, zero, otherwise */
|
||||||
{
|
{
|
||||||
if (do_log)
|
if (do_log)
|
||||||
{
|
|
||||||
if (mxs_log_init(NULL, get_logdir(), MXS_LOG_TARGET_FS))
|
|
||||||
{
|
{
|
||||||
MXS_ERROR("%s%s%s%s",
|
MXS_ERROR("%s%s%s%s",
|
||||||
logstr,
|
logstr,
|
||||||
@ -736,7 +734,6 @@ static void print_log_n_stderr(
|
|||||||
eno == 0 ? "" : mxs_strerror(eno),
|
eno == 0 ? "" : mxs_strerror(eno),
|
||||||
eno == 0 ? "" : ")");
|
eno == 0 ? "" : ")");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (do_stderr)
|
if (do_stderr)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
Reference in New Issue
Block a user