Skip to content

Allow silencing of non-string configuration warnings#8

Merged
hlascelles merged 1 commit intomasterfrom
allow-silencing-of-non-string-configuration
Nov 30, 2022
Merged

Allow silencing of non-string configuration warnings#8
hlascelles merged 1 commit intomasterfrom
allow-silencing-of-non-string-configuration

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