tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r534146 - /tomcat/connectors/trunk/jk/native/netscape/jk_nsapi_plugin.c
Date Tue, 01 May 2007 16:29:57 GMT
Author: rjung
Date: Tue May  1 09:29:54 2007
New Revision: 534146

URL: http://svn.apache.org/viewvc?view=rev&rev=534146
Log:
Check log file and shm file for correct configuration
during nsapi startup.

Modified:
    tomcat/connectors/trunk/jk/native/netscape/jk_nsapi_plugin.c

Modified: tomcat/connectors/trunk/jk/native/netscape/jk_nsapi_plugin.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/netscape/jk_nsapi_plugin.c?view=diff&rev=534146&r1=534145&r2=534146
==============================================================================
--- tomcat/connectors/trunk/jk/native/netscape/jk_nsapi_plugin.c (original)
+++ tomcat/connectors/trunk/jk/native/netscape/jk_nsapi_plugin.c Tue May  1 09:29:54 2007
@@ -228,9 +228,6 @@
 
     int rc = REQ_ABORTED;
 
-    fprintf(stderr,
-            "In jk_init.\n   Worker file = %s.\n   Log level = %s.\n   Log File = %s\n",
-            worker_prp_file, log_level_str, log_file);
     if (!worker_prp_file) {
         worker_prp_file = JK_WORKER_FILE_DEF;
     }
@@ -238,6 +235,22 @@
     if (!log_level_str) {
         log_level_str = JK_LOG_DEF_VERB;
     }
+
+    if (!log_file) {
+        fprintf(stderr,
+                "Missing attribute %s in magnus.conf (jk_init) - aborting!\n", JK_LOG_FILE_TAG);
+        return rc;
+    }
+
+    if (!shm_file) {
+        fprintf(stderr,
+                "Missing attribute %s in magnus.conf (jk_init) - aborting!\n", JK_SHM_FILE_TAG);
+        return rc;
+    }
+
+    fprintf(stderr,
+            "In jk_init.\n   Worker file = %s.\n   Log level = %s.\n   Log File = %s\n  
SHM File = %s\n",
+            worker_prp_file, log_level_str, log_file, shm_file);
 
     if (!jk_open_file_logger(&logger, log_file,
                              jk_parse_log_level(log_level_str))) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message