You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the bin/dev setup (in conjunction with tmux), Rails seems to think it's no longer in a development setup and stops outputting the debug logs (ex: the SQL queries, the views & controller debugging, ...). It seems to affect only modern-er version of Rails (>7, but to be confirmed).
Current Situation
A setup is copy/paste-ed in multiple projects (see list in Acceptance Criteria).
config/environment.rb, line ConsoleFriendlyLogger.auto_extend_rails!
app/models/console_friendly_logger.rb
app/models/log_severity_formatter.rb
Potential Issues to Fix
Double Output
It was observed in Anymator that the log output were appearing twice: once normal and once through the LogSeverityFormatter.
Opt-In Only
Make sure those behaviors are disabled by default -- at least the use of LogSeverityFormatter -- and opted-in explicitly via ENV. Also, use Shimmer's Config.foo? to read switches instead of manually re-implement with ENV.fetch.
Acceptance Criteria
This setup exists in those projects and should be removed when Shimmer implements them.
Code is implemented in Shimmer
Double Output problem is solved
Opt-In Only is implemented using Config for ENV
PR is open and flagged as waiting for this one, where code was removed and is using Shimmer's version in those projects:
anymator
copa-coupona
Usage is documented
The text was updated successfully, but these errors were encountered:
Problem
When using the
bin/dev
setup (in conjunction withtmux
), Rails seems to think it's no longer in a development setup and stops outputting the debug logs (ex: the SQL queries, the views & controller debugging, ...). It seems to affect only modern-er version of Rails (>7, but to be confirmed).Current Situation
A setup is copy/paste-ed in multiple projects (see list in Acceptance Criteria).
config/environment.rb
, lineConsoleFriendlyLogger.auto_extend_rails!
app/models/console_friendly_logger.rb
app/models/log_severity_formatter.rb
Potential Issues to Fix
Double Output
It was observed in Anymator that the log output were appearing twice: once normal and once through the
LogSeverityFormatter
.Opt-In Only
Make sure those behaviors are disabled by default -- at least the use of
LogSeverityFormatter
-- and opted-in explicitly via ENV. Also, use Shimmer'sConfig.foo?
to read switches instead of manually re-implement withENV.fetch
.Acceptance Criteria
This setup exists in those projects and should be removed when Shimmer implements them.
Config
for ENVanymator
copa-coupona
The text was updated successfully, but these errors were encountered: