diff options
author | Sam | 2013-08-28 16:21:12 -0500 |
---|---|---|
committer | Sam | 2013-08-28 16:21:12 -0500 |
commit | cd4d985e7142f92e18f8cf316c72073cb3609a85 (patch) | |
tree | 44d65af727d73b874f407805f30500af3da44c41 /wqflask/secure_server.py | |
parent | f2e41174a7e2091e7e835b137c6c7e2874feda04 (diff) | |
download | genenetwork2-cd4d985e7142f92e18f8cf316c72073cb3609a85.tar.gz |
Various changes to track down what happens with security modules
Diffstat (limited to 'wqflask/secure_server.py')
-rw-r--r-- | wqflask/secure_server.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/wqflask/secure_server.py b/wqflask/secure_server.py index 04b85663..b877c544 100644 --- a/wqflask/secure_server.py +++ b/wqflask/secure_server.py @@ -28,6 +28,21 @@ logging_tree.printout() import sys print("At startup, path is:", sys.path) + +######## +def tracefunc(frame, event, arg, indent=[0]): + if event == "call": + indent[0] += 2 + print("-" * indent[0] + "> call function", frame.f_code.co_name) + elif event == "return": + print("<" + "-" * indent[0], "exit function", frame.f_code.co_name) + indent[0] -= 2 + return tracefunc + +import sys +sys.settrace(tracefunc) +############## + #print("app.config is:", app.config) if __name__ == '__main__': |