Skip to content

Commit ed6e890

Browse files
author
Pere Urbon-Bayes
committed
update doc description for sql_log_level and add array validation
1 parent f668c75 commit ed6e890

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/logstash/plugin_mixins/jdbc.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ def setup_jdbc_config
7373
# documentation page: https://github.com/jeremyevans/sequel/blob/master/doc/opening_databases.rdoc
7474
config :sequel_opts, :validate => :hash, :default => {}
7575

76-
# Log level at which to log SQL queries. The default value is info.
77-
config :sql_log_level, :validate => :string, :default => "info"
76+
# Log level at which to log SQL queries, the accepted values are the common ones fatal, error, warn,
77+
# info and debug. The default value is info.
78+
config :sql_log_level, :validate => [ "fatal", "error", "warn", "info", "debug" ], :default => "info"
7879
end
7980

8081
private

0 commit comments

Comments
 (0)