Skip to content

Commit

Permalink
Renamed structured logging field (#425)
Browse files Browse the repository at this point in the history
* Renamed structured logging field

This is a change in the interest of backwards compatibility and deserializing the hostdata struct

Signed-off-by: Brooks Townsend <[email protected]>

* renamed variable to enable_structured_logging

Signed-off-by: Brooks Townsend <[email protected]>
  • Loading branch information
brooksmtownsend authored Jun 23, 2022
1 parent 639128a commit 51c05f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions host_core/lib/host_core/host.ex
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ defmodule HostCore.Host do
end

def generate_hostinfo_for(provider_key, link_name, instance_id, config_json) do
{url, jwt, seed, tls, timeout, structured_logging_enabled} =
{url, jwt, seed, tls, timeout, enable_structured_logging} =
case :ets.lookup(:config_table, :config) do
[config: config_map] ->
{"#{config_map[:prov_rpc_host]}:#{config_map[:prov_rpc_port]}",
Expand Down Expand Up @@ -429,7 +429,7 @@ defmodule HostCore.Host do
cluster_issuers: cluster_issuers(),
invocation_seed: cluster_seed(),
# In case providers want to be aware of this for their own logging
structured_logging_enabled: to_bool(structured_logging_enabled)
enable_structured_logging: to_bool(enable_structured_logging)
}
|> Jason.encode!()
end
Expand Down

0 comments on commit 51c05f5

Please sign in to comment.