ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r588544 - /webservices/axis2/branches/c/29092007/src/core/transport/http/server/simple_axis2_server/http_server_main.c
Date Fri, 26 Oct 2007 07:02:51 GMT
Author: damitha
Date: Fri Oct 26 00:02:43 2007
New Revision: 588544

URL: http://svn.apache.org/viewvc?rev=588544&view=rev
Log:
initialized log_file_size variable to remove warning

Modified:
    webservices/axis2/branches/c/29092007/src/core/transport/http/server/simple_axis2_server/http_server_main.c

Modified: webservices/axis2/branches/c/29092007/src/core/transport/http/server/simple_axis2_server/http_server_main.c
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/c/29092007/src/core/transport/http/server/simple_axis2_server/http_server_main.c?rev=588544&r1=588543&r2=588544&view=diff
==============================================================================
--- webservices/axis2/branches/c/29092007/src/core/transport/http/server/simple_axis2_server/http_server_main.c
(original)
+++ webservices/axis2/branches/c/29092007/src/core/transport/http/server/simple_axis2_server/http_server_main.c
Fri Oct 26 00:02:43 2007
@@ -100,7 +100,7 @@
     extern char *optarg;
     extern int optopt;
     int c;
-    int log_file_size;
+    int log_file_size = 0;
     axutil_log_levels_t log_level = AXIS2_LOG_LEVEL_DEBUG;
     const axis2_char_t *log_file = "axis2.log";
     int port = 9090;
@@ -161,7 +161,8 @@
 
     env = init_syetem_env(allocator, log_file);
     env->log->level = log_level;
-    env->log->size = 1024 * 1024 * log_file_size;
+    if(log_file_size > 0)
+        env->log->size = 1024 * 1024 * log_file_size;
 
     axutil_error_init();
     system_env = env;



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message