Skip to content
Open
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
2 changes: 1 addition & 1 deletion lib/ldclient-openfeature/impl/context_converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions spec/impl/context_converter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading