Hi, Eric,
I'm sorry for the disturbing for this problem.
I used GDB to trace the code, in the hope of understanding why httpd never
print that log message.
Basically, that following code print out the log message:
/* server/mpm/event/event.c */
3182 ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL, APLOGNO(00521)
3183 "MaxClients is deprecated, use MaxRequestWorkers "
3184 "instead.");
and at the startup, the system did execute this logging statement.
but when go inside the ap_log_error function, it fails into the following
if condition:
/* server/log.c */
1120 /*
1121 * If we are doing stderr logging (startup), don't log
messages that are
1122 * above the default server log level unless it is a
startup/shutdown
1123 * notice
1124 */
1125 #ifndef DEBUG
1126 if ((level_and_mask != APLOG_NOTICE)
1127 && (level_and_mask > ap_default_loglevel)) {
1128 return;
1129 }
1130 #endif
Here, level_and_mask is 6 (APLOG_INFO), and ap_default_loglevel is 4. So
the code simply returned without printing the log message, and that's why I
never had chance to see the log message.
I have the following two questions:
1. How to enable the DEBUG macro in this case?
2. Is this behavior on purpose? because I think most httpd are not enabled
with DEBUG, so this kind of information is hardly to be noticed.
Many thanks,
Tianyin
On Wed, Dec 5, 2012 at 2:02 PM, Tianyin Xu <[email protected]> wrote:
> No no, what I mean is that I never configured "MaxRequestWorkers" but I
> configured "MaxClients".
>
> But I never see the log messge ""MaxClients is deprecated, use
> MaxRequestWorkers instead".
>
> I just wonder where can I find these types of log messages in my system.
>
> Thanks a lot!
> Tianyin
>
>
> On Wed, Dec 5, 2012 at 11:26 AM, Eric Covener <[email protected]> wrote:
>
>> On Wed, Dec 5, 2012 at 2:20 PM, Tianyin Xu <[email protected]> wrote:
>> >
>> > I guess I must miss something.
>> >
>>
>> " but I never configured this option. "
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> --
> Tianyin XU,
> http://cseweb.ucsd.edu/~tixu/
>
--
Tianyin XU,
http://cseweb.ucsd.edu/~tixu/