Skip to content
Permalink
Browse files

Fix concatenation of Pathname and String in CommonLogger (#952)

  • Loading branch information...
funk-yourself authored and jodosha committed Oct 20, 2018
1 parent 943c939 commit c39f6139be0ebbbeedd3e789d6d9a766d598fe2e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/hanami/common_logger.rb
@@ -58,7 +58,7 @@ def log(env, status, header, began_at)
verb: env[REQUEST_METHOD],
status: status.to_s[0..3],
ip: env[HTTP_X_FORWARDED_FOR] || env[REMOTE_ADDR],
path: env[SCRIPT_NAME] + env[PATH_INFO],
path: env[SCRIPT_NAME] + env[PATH_INFO].to_s,
length: length,
params: extract_params(env),
elapsed: now - began_at

0 comments on commit c39f613

Please sign in to comment.
You can’t perform that action at this time.