You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ti...@apache.org on 2010/03/09 21:52:27 UTC
svn commit: r921121 - /tomcat/jk/trunk/native/iis/jk_isapi_plugin.c
Author: timw
Date: Tue Mar 9 20:52:27 2010
New Revision: 921121
URL: http://svn.apache.org/viewvc?rev=921121&view=rev
Log:
Reverting http://svn.apache.org/viewvc?rev=920281&view=rev to avoid infinite recursion on log rotation.
Modified:
tomcat/jk/trunk/native/iis/jk_isapi_plugin.c
Modified: tomcat/jk/trunk/native/iis/jk_isapi_plugin.c
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/iis/jk_isapi_plugin.c?rev=921121&r1=921120&r2=921121&view=diff
==============================================================================
--- tomcat/jk/trunk/native/iis/jk_isapi_plugin.c (original)
+++ tomcat/jk/trunk/native/iis/jk_isapi_plugin.c Tue Mar 9 20:52:27 2010
@@ -2445,7 +2445,9 @@ static int init_logger(int rotate, jk_lo
/* Close the current log file if required, and the effective log file name has changed */
if (log_open && strncmp(log_file_name, log_file_effective, strlen(log_file_name)) != 0) {
- jk_log(logger, JK_LOG_INFO, "Log rotated to %s", log_file_name);
+ FILE* lf = ((jk_file_logger_t* )logger->logger_private)->logfile;
+ fprintf(lf, "Log rotated to %s\r\n", log_file_name);
+ fflush(lf);
rc = jk_close_file_logger(&logger);
log_open = JK_FALSE;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org