Move log initialization into a function

This will be of help when the implicit log initialization is added back.
This commit is contained in:
Markus Mäkelä
2018-08-25 23:03:45 +03:00
parent 8b653133a7
commit 9adc08a686
3 changed files with 33 additions and 37 deletions

View File

@ -24,6 +24,7 @@
#include <time.h>
#include <maxbase/jansson.h>
#include <maxbase/log.h>
#include <maxscale/modinfo.h>
#include <maxscale/pcre2.h>
#include <maxscale/query_classifier.h>
@ -281,6 +282,7 @@ typedef struct
char peer_hosts[MAX_ADMIN_HOST_LEN]; /**< The protocol, address and port for peers (currently only one) */
char peer_user[MAX_ADMIN_HOST_LEN]; /**< Username for maxscale-to-maxscale traffic */
char peer_password[MAX_ADMIN_HOST_LEN]; /**< Password for maxscale-to-maxscale traffic */
mxb_log_target_t log_target; /**< Log type */
} MXS_CONFIG;
/**