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:
@ -124,7 +124,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
num_args = optind;
|
||||
|
||||
skygw_logmanager_init(NULL, NULL, LOG_TARGET_DEFAULT);
|
||||
mxs_log_init(NULL, NULL, LOG_TARGET_DEFAULT);
|
||||
|
||||
skygw_log_set_augmentation(0);
|
||||
|
||||
@ -138,7 +138,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;
|
||||
}
|
||||
@ -162,7 +162,7 @@ int main(int argc, char **argv) {
|
||||
path, strerror(errno))));
|
||||
|
||||
skygw_log_sync_all();
|
||||
skygw_logmanager_done();
|
||||
mxs_log_finish();
|
||||
|
||||
free(inst);
|
||||
|
||||
@ -200,7 +200,7 @@ int main(int argc, char **argv) {
|
||||
"Check retcode: %i, Binlog Pos = %llu", ret, inst->binlog_position)));
|
||||
|
||||
skygw_log_sync_all();
|
||||
skygw_logmanager_done();
|
||||
mxs_log_finish();
|
||||
|
||||
free(inst);
|
||||
|
||||
|
Reference in New Issue
Block a user