nacho       02/04/26 17:49:10

  Modified:    jk/native2/common jk_logger_file.c
  Log:
  * Logger file can use substitutions..
  
  Revision  Changes    Path
  1.21      +5 -8      jakarta-tomcat-connectors/jk/native2/common/jk_logger_file.c
  
  Index: jk_logger_file.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_logger_file.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- jk_logger_file.c  25 Apr 2002 18:50:22 -0000      1.20
  +++ jk_logger_file.c  27 Apr 2002 00:49:10 -0000      1.21
  @@ -59,7 +59,7 @@
    * Description: Utility functions (mainly configuration)                   *
    * Author:      Gal Shachor <[EMAIL PROTECTED]>                           *
    * Author:      Henri Gomez <[EMAIL PROTECTED]>                               *
  - * Version:     $Revision: 1.20 $                                           *
  + * Version:     $Revision: 1.21 $                                           *
    ***************************************************************************/
   
   #include "jk_env.h"
  @@ -147,15 +147,12 @@
   {
       FILE *oldF=(FILE *)_this->logger_private;
       FILE *f=NULL;
  -
  +    jk_workerEnv_t *workerEnv=env->getByName( env, "workerEnv" );
       if( _this->name==NULL ) {
  -        jk_workerEnv_t *workerEnv=env->getByName( env, "workerEnv" );
  -        
  -        _this->name=jk2_config_replaceProperties( env, workerEnv->initData,
  -                                                  _this->mbean->pool,
  -                                                  "${serverRoot}/logs/mod_jk.log");
  +        _this->name="${serverRoot}/logs/mod_jk.log";
       }
  -    
  +    jk2_config_replaceProperties( env, workerEnv->initData,
  +                                                  _this->mbean->pool,_this->name);
       f = fopen(_this->name, "a+");
       if(f==NULL) {
           _this->jkLog(env, _this,JK_LOG_ERROR,
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to