You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jen mlists <pr...@gmail.com> on 2007/08/07 10:28:03 UTC
why error_log was written many times for same item?
Hello,
In my mp1 script I wrote some info to apache's error_log:
} elsif ($ip_int != $ip_int2) {
$r->log_error("[$ip FORBIDDEN] Request IP was not matched");
return FORBIDDEN;
But I saw it wrote many times for same error item,like:
[Tue Aug 7 16:24:08 2007] [error] [219.129.83.13 FORBIDDEN] Request
IP was not matched
[Tue Aug 7 16:24:08 2007] [error] [219.129.83.13 FORBIDDEN] Request
IP was not matched
[Tue Aug 7 16:24:08 2007] [error] [219.129.83.13 FORBIDDEN] Request
IP was not matched
[Tue Aug 7 16:24:08 2007] [error] [219.129.83.13 FORBIDDEN] Request
IP was not matched
[Tue Aug 7 16:24:08 2007] [error] [219.129.83.13 FORBIDDEN] Request
IP was not matched
[Tue Aug 7 16:24:08 2007] [error] [219.129.83.13 FORBIDDEN] Request
IP was not matched
[Tue Aug 7 16:24:08 2007] [error] [219.129.83.13 FORBIDDEN] Request
IP was not matched
[Tue Aug 7 16:24:08 2007] [error] [219.129.83.13 FORBIDDEN] Request
IP was not matched
Why this happen?Thank you.
Re: why error_log was written many times for same item?
Posted by Perrin Harkins <pe...@elem.com>.
On 8/7/07, Jen mlists <pr...@gmail.com> wrote:
> In my mp1 script I wrote some info to apache's error_log:
>
> } elsif ($ip_int != $ip_int2) {
> $r->log_error("[$ip FORBIDDEN] Request IP was not matched");
> return FORBIDDEN;
>
>
> But I saw it wrote many times for same error
It must have been called multiple times then. Calling log_error once
only produces one line in the log.
- Perrin