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

Warn messages while using env prefix #482

Open
gusinacio opened this issue Nov 11, 2024 · 0 comments
Open

Warn messages while using env prefix #482

gusinacio opened this issue Nov 11, 2024 · 0 comments
Labels
low meta:good-first-issue Good for newcomers p3 Low priority pkg:config repo:indexer-rs size:small Small type:bug Something isn't working

Comments

@gusinacio
Copy link
Member

We have people using environment variables to set config values. This is currently backward compatible but people are receiving messages because of the prefix:

  2024-11-10T16:07:38.447746Z  WARN indexer_config::config: Ignoring unknown configuration field: _host_and_port
    at config/src/config.rs:59

  2024-11-10T16:07:38.447805Z  WARN indexer_config::config: Ignoring unknown configuration field: _serve_escrow_subgraph
    at config/src/config.rs:59

  2024-11-10T16:07:38.447808Z  WARN indexer_config::config: Ignoring unknown configuration field: _serve_network_subgraph
    at config/src/config.rs:59

  2024-11-10T16:07:38.447810Z  WARN indexer_config::config: Ignoring unknown configuration field: _tap
    at config/src/config.rs:59

  2024-11-10T16:07:38.447811Z  WARN indexer_config::config: Ignoring unknown configuration field: _url_prefix
    at config/src/config.rs:59

This happens because we have in our config the following entries:

[service]
host_and_port = "0.0.0.0:7600"
url_prefix = "/"
serve_network_subgraph = false
serve_escrow_subgraph = false

And the way our prefix works, these environment variables are having some messages because of that:

INDEXER_SERVICE__SERVE_NETWORK_SUBGRAPH
INDEXER_SERVICE__SERVE_ESCROW_SUBGRAPH
INDEXER_SERVICE__HOST_AND_PORT
INDEXER_SERVICE__URL_PREFIX
@gusinacio gusinacio added repo:indexer-rs pkg:config size:small Small type:bug Something isn't working p3 Low priority meta:good-first-issue Good for newcomers low labels Nov 11, 2024 — with Linear
@gusinacio gusinacio changed the title Error messages while using env prefix Warn messages while using env prefix Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low meta:good-first-issue Good for newcomers p3 Low priority pkg:config repo:indexer-rs size:small Small type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant