Author: rjung Date: Thu Mar 5 11:41:25 2009 New Revision: 750428 URL: http://svn.apache.org/viewvc?rev=750428&view=rev Log: Add a deprecation log warning when a JNI worker is instantiated.
Modified: tomcat/connectors/trunk/jk/native/common/jk_jni_worker.c Modified: tomcat/connectors/trunk/jk/native/common/jk_jni_worker.c URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_jni_worker.c?rev=750428&r1=750427&r2=750428&view=diff ============================================================================== --- tomcat/connectors/trunk/jk/native/common/jk_jni_worker.c (original) +++ tomcat/connectors/trunk/jk/native/common/jk_jni_worker.c Thu Mar 5 11:41:25 2009 @@ -645,6 +645,11 @@ JK_TRACE_ENTER(l); + jk_log(l, JK_LOG_WARNING, + "Worker '%s' is of type jni, which is deprecated " + "and will be removed in a future release.", + name ? name : "(null)"); + if (!name || !w) { JK_LOG_NULL_PARAMS(l); JK_TRACE_EXIT(l); @@ -1251,6 +1256,10 @@ int JK_METHOD jni_worker_factory(jk_worker_t **w, const char *name, jk_logger_t *l) { + jk_log(l, JK_LOG_WARNING, + "Worker '%s' is of type jni, which is deprecated " + "and will be removed in a future release.", + name ? name : "(null)"); if (w) *w = NULL; return 0; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org