small change

This commit is contained in:
Jordi Sanfeliu 2013-05-28 10:02:25 +02:00
parent cc0470b9ee
commit e293555081
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ sub logger {
print OUT localtime() . " - $type - [$ENV{REMOTE_ADDR}] \"$ENV{REQUEST_METHOD} $url - $ENV{HTTP_USER_AGENT}\"\n";
} elsif($type eq "NOTEXIST") {
print OUT localtime() . " - $type - [$ENV{REMOTE_ADDR}] File does not exist: $url\n";
} elsif($type eq "NOAUTH") {
} elsif($type eq "AUTHERR") {
print OUT localtime() . " - $type - [$ENV{REMOTE_ADDR}] Authentication error: $url\n";
} elsif($type eq "NOTALLOWED") {
print OUT localtime() . " - $type - [$ENV{REMOTE_ADDR}] Access not allowed: $url\n";
@ -221,7 +221,7 @@ sub handle_request {
print "browser doesn't understand how to supply\r\n";
print "the credentials required.</p>\r\n";
print "</body></html>\r\n";
logger($url, "NOAUTH");
logger($url, "AUTHERR");
exit(0);
}
}