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

Pass expected name for enabling structured logging in providers #558

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion host_core/lib/host_core/vhost/config_plan.ex
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ defmodule HostCore.Vhost.ConfigPlan do
{:js_domain, "WASMCLOUD_JS_DOMAIN", required: false},
{:config_service_enabled, "WASMCLOUD_CONFIG_SERVICE",
required: false, map: &string_to_bool/1},
{:enable_structured_logging, "WASMCLOUD_STRUCTURED_LOGGING_ENABLED", required: false},
{:enable_structured_logging, "WASMCLOUD_STRUCTURED_LOGGING_ENABLED",
required: false, map: &string_to_bool/1},
{:structured_log_level, "WASMCLOUD_STRUCTURED_LOG_LEVEL",
required: false, map: &string_to_loglevel/1},
{:enable_ipv6, "WASMCLOUD_ENABLE_IPV6", required: false, map: &string_to_bool/1},
Expand Down
2 changes: 1 addition & 1 deletion host_core/lib/host_core/vhost/virtual_host.ex
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ defmodule HostCore.Vhost.VirtualHost do
invocation_seed: config.cluster_seed,
js_domain: config.js_domain,
# In case providers want to be aware of this for their own logging
enable_structured_logging: config.enable_structured_logging
structured_logging: config.enable_structured_logging
})
end

Expand Down