Log: skygw_logmanager_init renamed to mxs_log_init.
skygw_logmanager_init renamed to mxs_log_init and skygw_logmanager_done renamed to mxs_log_finish. skygw_logmanager_exit removed alltogether as all it did was to call skygw_logmanager_done. That appears to have been a source for confusion as in many places a call to skygw_logmanager_done was followed by a call to skygw_logmanager_exit. In addition, the function skygw_log_done was removed from the header, since it lacked an implementation.
This commit is contained in:
@ -89,7 +89,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
roptions = strdup("server-id=3,heartbeat=200,binlogdir=/not_exists/my_dir,transaction_safety=1,master_version=5.6.99-common,master_hostname=common_server,master_uuid=xxx-fff-cccc-fff,master-id=999");
|
||||
|
||||
skygw_logmanager_init(NULL, NULL, LOG_TARGET_DEFAULT);
|
||||
mxs_log_init(NULL, NULL, LOG_TARGET_DEFAULT);
|
||||
|
||||
skygw_log_disable(LOGFILE_DEBUG);
|
||||
skygw_log_disable(LOGFILE_TRACE);
|
||||
@ -128,7 +128,7 @@ int main(int argc, char **argv) {
|
||||
"Error: Memory allocation FAILED for ROUTER_INSTANCE")));
|
||||
|
||||
skygw_log_sync_all();
|
||||
skygw_logmanager_done();
|
||||
mxs_log_finish();
|
||||
|
||||
return 1;
|
||||
}
|
||||
@ -579,7 +579,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
skygw_log_sync_all();
|
||||
skygw_logmanager_done();
|
||||
mxs_log_finish();
|
||||
|
||||
free(inst);
|
||||
|
||||
|
Reference in New Issue
Block a user