diff options
author | Boris Pavlovic <boris@pavlovic.me> | 2014-06-24 20:06:14 +0400 |
---|---|---|
committer | Boris Pavlovic <boris@pavlovic.me> | 2014-06-24 20:07:40 +0400 |
commit | d6217ffa83da97b411238b4bedcd63e1b14804d4 (patch) | |
tree | 2a7bc70ed7ad8ae74ca89e44b8e8466e641eef3e | |
parent | b6c2275d1dddc34f025eccd522801ba08e7f9d1f (diff) | |
download | osprofiler-d6217ffa83da97b411238b4bedcd63e1b14804d4.tar.gz |
Add extra docs in sqlalchemy module0.1.0
Change-Id: Ieb9181a2e997e5e3ea02fd91d2b85aa54a4b83be
-rw-r--r-- | osprofiler/sqlalchemy.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/osprofiler/sqlalchemy.py b/osprofiler/sqlalchemy.py index d9d273e..e33ed5e 100644 --- a/osprofiler/sqlalchemy.py +++ b/osprofiler/sqlalchemy.py @@ -41,11 +41,18 @@ _DISABLED = False def disable(): + """add_tracing does not add event listeners for sqlalchemy. + + This is quite important in case of sql migrations. Because it's not allowed + to add these events. + """ global _DISABLED _DISABLED = True def enable(): + """add_tracing adds event listeners for sqlalchemy.""" + global _DISABLED _DISABLED = False |