From 8a6946b18003fae6400a137389f0cb13d0ac4bd6 Mon Sep 17 00:00:00 2001 From: m0gg Date: Sat, 3 Nov 2007 22:40:09 +0000 Subject: Split nanoHTTP and cSOAP logging --- libcsoap/soap-fault.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libcsoap/soap-fault.c') diff --git a/libcsoap/soap-fault.c b/libcsoap/soap-fault.c index 3341f7a..ab56979 100644 --- a/libcsoap/soap-fault.c +++ b/libcsoap/soap-fault.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: soap-fault.c,v 1.16 2006/12/14 19:36:49 m0gg Exp $ +* $Id: soap-fault.c,v 1.17 2007/11/03 22:40:09 m0gg Exp $ * * CSOAP Project: A SOAP client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -33,11 +33,11 @@ #include #endif -#include - #include -#include +#include + +#include "soap-logging.h" #include "soap-xml.h" #include "soap-env.h" #include "soap-ctx.h" @@ -91,7 +91,7 @@ soap_fault_build(int fault_code, const char *fault_string, const char *fault_act char *buffer; xmlDocPtr fault; /* result */ - log_verbose1("Build fault"); + log_verbose("Build fault"); switch (fault_code) { @@ -121,10 +121,10 @@ soap_fault_build(int fault_code, const char *fault_string, const char *fault_act if (detail) bufferlen += strlen(detail); - log_verbose2("Creating buffer with %d bytes", bufferlen); + log_verbose("Creating buffer with %d bytes", bufferlen); if (!(buffer = (char *) malloc(bufferlen))) { - log_error2("malloc failed (%s)", errno); + log_error("malloc failed (%s)", errno); return NULL; } @@ -139,11 +139,11 @@ soap_fault_build(int fault_code, const char *fault_string, const char *fault_act if (fault == NULL) { - log_error1("Cannot create XML document!"); + log_error("Cannot create XML document!"); return soap_fault_build(fault_code, "Cannot create fault object in XML", soap_server_get_name(), NULL); } - log_verbose2("Returning fault (%p)", fault); + log_verbose("Returning fault (%p)", fault); return fault; } -- cgit v1.1-32-gdbae