NUBIC/surveyor — Issue #257: Parser is noisy by default
Author: rsutphin
Created: 2011-11-30 00:48:53+00:00
State: open
Labels: parser

Surveyor's DSL reader produces a huge amount of tracing output on standard out by default. Among other things, this makes it unpleasant to use from within tests, since Parser's output swamps the the test output.

Suggestion: make tracing optional and off by default. This could be controlled using the Rails logger or via an environment variable.

Workaround: if you are invoking the parser from your own code, you can disconnect its `$stdout` from your terminal like so:

```ruby
$stdout = StringIO.new
Surveyor::Parser.new dsl_string
$stdout = STDOUT
```