From 255d6c1437922760453dc001fbe175888aee9133 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 17 Dec 2014 15:27:54 +0000 Subject: [PATCH] Improve commenting --- web/pgAdmin4.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/web/pgAdmin4.py b/web/pgAdmin4.py index 8c8020552..e4afd6cbf 100755 --- a/web/pgAdmin4.py +++ b/web/pgAdmin4.py @@ -24,10 +24,11 @@ import config # Setup the app object app = Flask(__name__, static_url_path='') -# +########################################################################## # Setup logging and log the application startup -# +########################################################################## +# Add SQL level logging, and set the base logging level logging.addLevelName(25, 'SQL') app.logger.setLevel(logging.DEBUG) @@ -73,6 +74,10 @@ Today is %s def ping(): return "PING" +########################################################################## +# Server starup +########################################################################## + # Start the web server. The port number should have already been set by the # runtime if we're running in desktop mode, otherwise we'll just use the # Flask default.