#356 new
Hans de Graaff

webrat should not create a logger by default

Reported by Hans de Graaff | February 19th, 2010 @ 01:05 PM

The code in webrat/core/logging.rb creates a log file in the current directory if the environment it is running under is not rails or merb. This leads to problems when that log file cannot be created.

This happens to me when using cucumber-nagios in a restricted environment where nagios can execute the plugin but not write the associated directory. The plugin fails because it cannot write the webrat.log file. I've verified that this is the problem by commenting out the only user of the logger in core/session.rb.

A solution would be to only create the log file when requested (e.g. using an environment variable)

Comments and changes to this ticket

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages