modify the log statement for 404

Asked by marc

Hi,

Where can I modify the log.warn for the 404 statement? I would like to add the ip address. I have someone trying to hack my site, I need to block it.

Cheers.

Question information

Language:
English Edit question
Status:
Solved
For:
play framework Edit question
Assignee:
No assignee Edit question
Solved by:
marc
Solved:
Last query:
Last reply:
Revision history for this message
marc (marc-ttux) said :
#1

So it's in play/mvc/results/NotFound.java

But the next step is: how do you build play?

Revision history for this message
marc (marc-ttux) said :
#2

And I answer, you are using ant

Revision history for this message
marc (marc-ttux) said :
#3

Hmm, I ran:
ant clean jar

I got a new play.jar

I restart my application but I don't get my modified 404 statement. What am I doing wrong?

Revision history for this message
marc (marc-ttux) said :
#4

Ok that's because it's not in NotFound.java but in play/server/HttpHandler.java.

Revision history for this message
Guillaume Bort (guillaume-bort) said :
#5

Hi,

I'll try to add a more complete access log soon.

On Sun, Mar 1, 2009 at 11:55 AM, marc
<email address hidden> wrote:
> Question #62660 on play framework changed:
> https://answers.launchpad.net/play/+question/62660
>
>    Status: Open => Solved
>
> marc confirmed that the question is solved:
> Ok that's because it's not in NotFound.java but in
> play/server/HttpHandler.java.
>
> --
> You received this question notification because you are a member of play
> framework developers, which is an answer contact for play framework.
>