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

Use Rails logger instead of p #575

Merged
merged 1 commit into from
Sep 21, 2016
Merged

Conversation

agombault
Copy link
Contributor

No description provided.

@@ -105,7 +105,7 @@ def on_windows?
end

def print_command(cmd)
p '*' * 15 + cmd + '*' * 15
Rails.logger.debug '*' * 15 + cmd + '*' * 15 if defined?(Rails)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The if shouldn't be necessary since this is only called by in_development_mode?, which already does this check.

This is a good change, though!

@agombault
Copy link
Contributor Author

@unixmonkey you're right for the if. I removed it.

@unixmonkey unixmonkey merged commit d6c4e9f into mileszs:master Sep 21, 2016
@unixmonkey
Copy link
Collaborator

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants