
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
-
Hans de Graaff May 1st, 2010 @ 03:11 AM
It looks like I entered this twice. Apologies. I can't close this as a duplicate, so please see ticket #357 instead.
-
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
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.