MXS-2075: Only enable stdout redirection for maxscale

The stdout redirection must not be enabled for the other programs as they
are not run as daemon processes.
This commit is contained in:
Markus Mäkelä
2018-10-01 11:01:09 +03:00
parent 048aee1fb7
commit 288fbc8c33
3 changed files with 19 additions and 4 deletions

View File

@ -106,6 +106,7 @@ void mxs_log_set_maxlog_enabled(bool enabled);
void mxs_log_set_highprecision_enabled(bool enabled);
void mxs_log_set_augmentation(int bits);
void mxs_log_set_throttling(const MXS_LOG_THROTTLING* throttling);
void mxs_log_redirect_stdout(bool redirect);
void mxs_log_get_throttling(MXS_LOG_THROTTLING* throttling);
json_t* mxs_logs_to_json(const char* host);