Skip to content

Commit

Permalink
Use default strftime in exception log added in sinatra#909
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Aug 11, 2014
1 parent 1add394 commit cc385a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Expand Up @@ -1140,7 +1140,7 @@ def error_block!(key, *block_params)
end

def dump_errors!(boom)
msg = ["#{Time.now.strftime("%d/%b/%Y %H:%M:%S")} - #{boom.class} - #{boom.message}:", *boom.backtrace].join("\n\t")
msg = ["#{Time.now.strftime("%Y-%m-%d %H:%M:%S")} - #{boom.class} - #{boom.message}:", *boom.backtrace].join("\n\t")
@env['rack.errors'].puts(msg)
end

Expand Down

0 comments on commit cc385a4

Please sign in to comment.