log.Println logging duplicate

51 views
Skip to first unread message

ali oygur

unread,
Apr 22, 2015, 9:10:45 AM4/22/15
to golan...@googlegroups.com
hi everybody,


i am new in go lang


there is my code

i run as "go run test.go" then i do a request to http://localhost:8001.

but i see twice log record. 

➜  test  go run test.go
2015/04/22 16:01:36 indexHandler
2015/04/22 16:01:36 indexHandler

it should be one record. what is the problem ?

Jan Mercl

unread,
Apr 22, 2015, 9:32:20 AM4/22/15
to golan...@googlegroups.com

> On Wed, Apr 22, 2015 at 3:10 PM ali oygur <alio...@gmail.com> wrote:

Your route "/" catches all and your browser wants the site's favicon.

Try logging the request URL.

-j

Reply all
Reply to author
Forward
0 new messages