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

Check if logger isn't nil #183

Merged
merged 1 commit into from Jan 30, 2013
Merged

Check if logger isn't nil #183

merged 1 commit into from Jan 30, 2013

Conversation

zewelor
Copy link
Contributor

@zewelor zewelor commented Jan 30, 2013

When we got config.action_controller.logger set to nil to prevent logging we get error

undefined method `info' for nil:NilClass

which is caused by

def log_pdf_creation
  logger.info '*'*15 + 'WICKED' + '*'*15
end

unixmonkey added a commit that referenced this pull request Jan 30, 2013
Check if logger isn't nil
@unixmonkey unixmonkey merged commit 5265b30 into mileszs:master Jan 30, 2013
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.

None yet

2 participants