summaryrefslogtreecommitdiff
path: root/oslo_db/options.py
diff options
context:
space:
mode:
authorEric Brown <browne@vmware.com>2016-06-29 17:26:02 -0700
committerRoman Podoliaka <rpodolyaka@mirantis.com>2016-07-09 01:56:35 +0300
commite0cc306c0a581b84d0a8b9eddfcd77ebf50977e7 (patch)
tree01065459ce67ad29d1a32916e88e8a4c13ad84db /oslo_db/options.py
parent58d60ca5b2465c96adec36c286328b1b8b8b512f (diff)
downloadoslo-db-e0cc306c0a581b84d0a8b9eddfcd77ebf50977e7.tar.gz
Set a min and max on the connection_debug option
There is a set allowable minimum and maximum to the connection_debug option of 0 and 100. The config option should enforce this. Change-Id: Ica610ad8fc0875a8be1042f7daba5d0a0c1aad03
Diffstat (limited to 'oslo_db/options.py')
-rw-r--r--oslo_db/options.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/oslo_db/options.py b/oslo_db/options.py
index 89f4cf7..7742686 100644
--- a/oslo_db/options.py
+++ b/oslo_db/options.py
@@ -101,6 +101,7 @@ database_opts = [
'SQLAlchemy.'),
cfg.IntOpt('connection_debug',
default=0,
+ min=0, max=100,
deprecated_opts=[cfg.DeprecatedOpt('sql_connection_debug',
group='DEFAULT')],
help='Verbosity of SQL debugging information: 0=None, '