Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails SQL log spam when calling railroady #74

Open
TikiTDO opened this issue Sep 26, 2014 · 1 comment
Open

Rails SQL log spam when calling railroady #74

TikiTDO opened this issue Sep 26, 2014 · 1 comment

Comments

@TikiTDO
Copy link

TikiTDO commented Sep 26, 2014

Whenever I run railroady through the rake task in dev mode the very first thing that happens is rails prints out some SQL log messages, followed by the actual output. These then get piped to dot, which rightfully errors out. See below for example output:

image

I can work around the issue in bin/railroady:53 by adding the following code:

     diagram.process
     ActiveRecord::Base.logger.level = 1 if defined?(ActiveRecord)
     diagram.generate

Unfortunately this feels like a bit of a hack so I am hesitant so submit a patch.

@preston
Copy link
Owner

preston commented Sep 26, 2014

Anyone else want to chime in? This seems like it might be problematic for some folks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants