Commit 6bf440e9 authored by Benjamin REIS's avatar Benjamin REIS

Clean code

parent f66898be
......@@ -66,11 +66,7 @@ int bctoolbox_tester_set_log_file(const char *filename) {
return -1;
}
bctbx_message("Redirecting traces to file [%s]", filename);
const char *path = dirname(filename);
const char *name = basename(filename);
bctbx_message("path : %s, name : %s \n", path, name);
BctoolboxLogHandler* filehandler = bctbx_create_file_log_handler(0, path, name, log_file);
bctbx_message("Adding handler");
BctoolboxLogHandler* filehandler = bctbx_create_file_log_handler(0, dirname(filename), basename(filename), log_file);
bctbx_add_log_handler(filehandler);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment