Commit c195b98e authored by Benjamin REIS's avatar Benjamin REIS

change log API in tester

parent 70d230af
......@@ -63,8 +63,10 @@ int bctoolbox_tester_set_log_file(const char *filename) {
bctbx_error("Cannot open file [%s] for writing logs because [%s]", filename, strerror(errno));
return -1;
bctbx_message("Redirecting traces to file [%s]", filename);
bctbx_message("Redirecting traces to file [%s]", filename);BctoolboxLogHandler* filehandler = (BctoolboxLogHandler*)malloc(sizeof(BctoolboxLogHandler));
filehandler->func = bctbx_logv_file;
filehandler->user_info = log_file;
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