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

Allow silencing of non-string configuration warnings #8

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

hlascelles
Copy link
Owner

This adds a new configuration entry, FIGJAM_SILENCE_STRING_WARNINGS, which if set to true/true will silence warnings like WARNING: Use strings for Figaro configuration. 100 was converted to "100".

eg:

FIGJAM_SILENCE_STRING_WARNINGS: true

# These will now not cause a warning log lines:
FOO: 1
BAR: true

FIGARO_SILENCE_STRING_WARNINGS is also supported.

Thanks to @owst for offering this fix in the original Figaro gem: laserlemon/figaro#264

This adds a new configuration entry, `FIGJAM_SILENCE_STRING_WARNINGS`, which if set to `true`/`true` will silence warnings like `WARNING: Use strings for Figaro configuration. 100 was converted to "100"`.

eg:
```yaml
FIGJAM_SILENCE_STRING_WARNINGS: true

# These will now not cause a warning log lines:
FOO: 1
BAR: true
```

`FIGARO_SILENCE_STRING_WARNINGS` is also supported.
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.

1 participant