From a6d4308d6efa9a9a6749365b224b9e3f07a3ce19 Mon Sep 17 00:00:00 2001 From: Vadim Revyakin Date: Mon, 25 Dec 2006 12:30:15 +0000 Subject: library provides standard debug handler --- src/wsman.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/wsman.c b/src/wsman.c index cc01f9c..840cd85 100644 --- a/src/wsman.c +++ b/src/wsman.c @@ -52,6 +52,7 @@ #include "wsman-client-api.h" #include "wsman-client-transport.h" #include "wsman-client-options.h" +#include "wsman-debug.h" static void @@ -75,7 +76,7 @@ wsman_output(WsXmlDocH doc) return; } - +/* static void debug_message_handler(const char *str, debug_level_e level, void *user_data) { @@ -90,11 +91,11 @@ debug_message_handler(const char *str, debug_level_e level, void *user_data) fprintf(stderr, "%s %s\n", timestr, str); } } - +*/ static void initialize_logging(void) { - debug_add_handler(debug_message_handler, DEBUG_LEVEL_ALWAYS, NULL); + debug_add_handler(wsman_debug_message_handler, DEBUG_LEVEL_ALWAYS, NULL); } -- cgit