Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

Need option to stop Sinatra logging to stderr #29

Closed
L2G opened this issue Feb 3, 2012 · 1 comment
Closed

Need option to stop Sinatra logging to stderr #29

L2G opened this issue Feb 3, 2012 · 1 comment

Comments

@L2G
Copy link
Contributor

L2G commented Feb 3, 2012

Running the watirspec tests generates a lot of noise:

[2012-02-02 16:12:54] INFO  WEBrick 1.3.1
[2012-02-02 16:12:54] INFO  ruby 1.8.7 (2011-06-30) [i386-mingw32]
[2012-02-02 16:12:54] INFO  WEBrick::HTTPServer#start: pid=3128 port=2001
running watirspec against Watir::IE
.............localhost - - [02/Feb/2012:16:13:02 Pacific Standard Time] "GET /plain_text HTTP/1.1" 200 18
- -> /plain_text
........localhost - - [02/Feb/2012:16:13:05 Pacific Standard Time] "GET /non_control_elements.html HTTP/1.1" 304 0
- -> /non_control_elements.html
localhost - - [02/Feb/2012:16:13:05 Pacific Standard Time] "GET /javascript/helpers.js HTTP/1.1" 304 0
http://localhost:2001/non_control_elements.html -> /javascript/helpers.js

When all I really want to see is this:

running watirspec against Watir::IE
.....................

There is no way, at least no obvious way, to turn off all of the noise from web server logging. I've tried inserting "set :logging, false" alongside the other set commands in lib/server.rb, but that has no effect.

I hope this isn't some dumb thing I'm overlooking. :-)

@jarmo
Copy link
Member

jarmo commented Jan 6, 2013

Got rid most of the output with 42058eb

Now i'm seeing only lines like these:

[2013-01-06 23:20:43] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

Not sure yet how to get rid of those.

@jarmo jarmo closed this as completed in 65df9fe Jan 7, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants