summaryrefslogtreecommitdiff
path: root/devstack/lib/osprofiler
diff options
context:
space:
mode:
authorIlya Shakhat <shakhat@gmail.com>2018-09-17 15:52:40 +0200
committerIlya Shakhat <shakhat@gmail.com>2018-09-17 15:52:40 +0200
commit2f66049fb8d7b785b0487bf39df9004d388bcf1b (patch)
tree2b7fc3e211d256bb6cd99c9c0b2987a12b0de832 /devstack/lib/osprofiler
parent2b4786b5cc819c5d321d97e3cf9e1d5f24ebdb97 (diff)
downloadosprofiler-2f66049fb8d7b785b0487bf39df9004d388bcf1b.tar.gz
Make tracing of SQL statements configurable in DevStack plugin
This patch adds a new configuration variable OSPROFILER_TRACE_SQLALCHEMY with default value `True`. Change-Id: I72c782872dac370d6d1620cf734a293f998ed7f1
Diffstat (limited to 'devstack/lib/osprofiler')
-rw-r--r--devstack/lib/osprofiler2
1 files changed, 1 insertions, 1 deletions
diff --git a/devstack/lib/osprofiler b/devstack/lib/osprofiler
index 4bff5ed..607a2f4 100644
--- a/devstack/lib/osprofiler
+++ b/devstack/lib/osprofiler
@@ -71,7 +71,7 @@ function configure_osprofiler() {
if [ -f $conf ]
then
iniset $conf profiler enabled True
- iniset $conf profiler trace_sqlalchemy True
+ iniset $conf profiler trace_sqlalchemy $OSPROFILER_TRACE_SQLALCHEMY
iniset $conf profiler hmac_keys $OSPROFILER_HMAC_KEYS
iniset $conf profiler connection_string $OSPROFILER_CONNECTION_STRING
fi