Skip to content

Commit

Permalink
Erroneous common log format entries, time should be surrounded by bra…
Browse files Browse the repository at this point in the history
…ckets
  • Loading branch information
Claes Wikstrom committed Mar 10, 2010
1 parent 92037d8 commit 9dfb58e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yaws_log.erl
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,8 @@ fmt_ip(HostName) ->
fmtnow() ->
{{Year, Month, Day}, {Hour, Min, Sec}} =
calendar:now_to_local_time(now()),
[fill_zero(Day,2),"/",yaws:month(Month),"/",integer_to_list(Year),":",
fill_zero(Hour,2),":",fill_zero(Min,2),":",fill_zero(Sec,2)," ",zone()].
["[",fill_zero(Day,2),"/",yaws:month(Month),"/",integer_to_list(Year),":",
fill_zero(Hour,2),":",fill_zero(Min,2),":",fill_zero(Sec,2)," ",zone(),"]"].


zone() ->
Expand Down

0 comments on commit 9dfb58e

Please sign in to comment.