diff --git a/lib/ldclient-openfeature/impl/context_converter.rb b/lib/ldclient-openfeature/impl/context_converter.rb index e6621b9..28b135e 100644 --- a/lib/ldclient-openfeature/impl/context_converter.rb +++ b/lib/ldclient-openfeature/impl/context_converter.rb @@ -30,7 +30,7 @@ def to_ld_context(context) return build_multi_context(context) if kind == "multi" unless kind.nil? || kind.is_a?(String) - @logger.warn("'kind' was set to a non-string value; defaulting to user") + @logger.error("'kind' was set to a non-string value; defaulting to user") kind = 'user' end diff --git a/spec/impl/context_converter_spec.rb b/spec/impl/context_converter_spec.rb index dade1f1..6c25b66 100644 --- a/spec/impl/context_converter_spec.rb +++ b/spec/impl/context_converter_spec.rb @@ -85,6 +85,7 @@ expect(ld_context.valid?).to be(true) expect(ld_context.key).to eq("org-key") expect(ld_context.kind).to eq("user") + expect(log_output.string).to include("ERROR", "'kind' was set to a non-string value; defaulting to user") end end