[Pkg-voip-commits] [bctoolbox] 02/60: Update logger api of tester

Bernhard Schmidt berni at moszumanska.debian.org
Sun Oct 15 22:42:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

berni pushed a commit to branch debian/sid
in repository bctoolbox.

commit 4db67e7fae8a3177c6abd6e3395c2a8ca30011c9
Author: Benjamin Reis <benjamin.reis at belledonne-communications.com>
Date:   Thu Mar 30 15:18:05 2017 +0200

    Update logger api of tester
---
 tester/bctoolbox_tester.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tester/bctoolbox_tester.c b/tester/bctoolbox_tester.c
index d5b259c..204d58b 100644
--- a/tester/bctoolbox_tester.c
+++ b/tester/bctoolbox_tester.c
@@ -63,9 +63,8 @@ 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);BctoolboxLogHandler* filehandler = (BctoolboxLogHandler*)malloc(sizeof(BctoolboxLogHandler));
-	filehandler->func = bctbx_logv_file;
-	filehandler->user_info = log_file;
+	bctbx_message("Redirecting traces to file [%s]", filename);
+	BctoolboxLogHandler* filehandler = bctbx_create_file_log_handler(0, dirname(filename), basename(filename), log_file);
 	bctbx_add_log_handler(filehandler);
 	return 0;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/bctoolbox.git



More information about the Pkg-voip-commits mailing list