axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manj...@apache.org
Subject svn commit: r749975 - /webservices/axis2/trunk/c/util/src/log.c
Date Wed, 04 Mar 2009 12:16:51 GMT
Author: manjula
Date: Wed Mar  4 12:16:51 2009
New Revision: 749975

URL: http://svn.apache.org/viewvc?rev=749975&view=rev
Log:
Fixing the log issue in the rc1.

Modified:
    webservices/axis2/trunk/c/util/src/log.c

Modified: webservices/axis2/trunk/c/util/src/log.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/log.c?rev=749975&r1=749974&r2=749975&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/log.c (original)
+++ webservices/axis2/trunk/c/util/src/log.c Wed Mar  4 12:16:51 2009
@@ -544,16 +544,18 @@
     ...)
 {
     if (log && log->ops && log->ops->write &&
-        format && log->enabled &&
-        AXIS2_LOG_LEVEL_TRACE <= log->level && log->level != AXIS2_LOG_LEVEL_USER)
+        format && log->enabled)
         {
-            char value[AXIS2_LEN_VALUE + 1];
-            va_list ap;
-            va_start(ap, format);
-            AXIS2_VSNPRINTF(value, AXIS2_LEN_VALUE, format, ap);
-            va_end(ap);
-        log->ops->write(log, value, AXIS2_LOG_LEVEL_TRACE, file, line);
-    }
+            if(AXIS2_LOG_LEVEL_TRACE <= log->level && log->level != AXIS2_LOG_LEVEL_USER)
+            {
+                char value[AXIS2_LEN_VALUE + 1];
+                va_list ap;
+                va_start(ap, format);
+                AXIS2_VSNPRINTF(value, AXIS2_LEN_VALUE, format, ap);
+                va_end(ap);
+                log->ops->write(log, value, AXIS2_LOG_LEVEL_TRACE, file, line);
+            }
+        }
 #ifndef AXIS2_NO_LOG_FILE
     else
         fprintf(stderr, "please check your log and buffer");



Mime
View raw message