Skip to content

Commit 2078284

Browse files
committed
parser_json: use JSON as fallback parser instead of Yajl for performance
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 24f08be commit 2078284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fluent/plugin/parser_json.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def configure_json_parser(name)
5252
when :oj
5353
return [Oj.method(:load), Oj::ParseError] if Fluent::OjOptions.available?
5454

55-
log&.info "Oj is not installed, and failing back to Yajl for json parser"
56-
configure_json_parser(:yajl)
55+
log&.info "Oj is not installed, and failing back to JSON for json parser"
56+
configure_json_parser(:json)
5757
when :json then [JSON.method(:load), JSON::ParserError]
5858
when :yajl then [Yajl.method(:load), Yajl::ParseError]
5959
else

0 commit comments

Comments
 (0)