Permalink
Browse files

Minor patch for mongrel

  • Loading branch information...
1 parent 26374d9 commit bfb1311d640cf73b03fbb42810010fc777895486 @bkayser bkayser committed Aug 28, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/newrelic/agent/agent.rb
View
2 lib/newrelic/agent/agent.rb
@@ -296,7 +296,7 @@ def initialize
end
def setup_log
- port_part = @local_port && @local_port[/[\.\w]*$/]
+ port_part = @local_port && @local_port.to_s[/[\.\w]*$/]
log_file = "#{RAILS_ROOT}/log/newrelic_agent.#{port_part ? port_part + "." : "" }log"
@log = Logger.new log_file

0 comments on commit bfb1311

Please sign in to comment.