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

fix logger, so it can log into default production.log #5436

Closed
wants to merge 1 commit into from

Conversation

galupa
Copy link
Contributor

@galupa galupa commented Oct 3, 2023

Hi,

I found out that if we not set up RAILS_LOG_TO_STDOUT and (RAILS_LOG_REMOTE_NAME or RAILS_LOG_REMOTE_PORT) env variable (e.q. we want to use default log to log into production.log file), Greenlight will raise error because the logger on line 151 (logger.formatter = config.log_formatter) is not initialised.

So this PR basically to fix it. I just move it inside the if statement.

Best Regards,

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@farhatahmad
Copy link
Collaborator

Fixed here: #5520

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