Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Add logger level to prod environment #440

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fridaland
Copy link
Contributor

Description

The rake task to distribute gifted coupons:gifts.rake, is not properly logging out to the terminal. We need to ensure the Rails.logger will run in production as it does in development.

Requirements to merge

  • Rails.logger works in production
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@johndbritton
Copy link
Contributor

The rake task to distribute gifted coupons:gifts.rake, is not properly logging out to the terminal. We need to ensure the Rails.logger will run in production as it does in development.

Rather than adjust the log level in production, you can just use puts in your rake task.

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

Successfully merging this pull request may close these issues.

None yet

2 participants