From 8ae7324ea3921cd47bcb19e0a1a1900322899ad6 Mon Sep 17 00:00:00 2001 From: Ronny Abraham Date: Sun, 2 Jun 2019 22:52:07 +0300 Subject: [PATCH] add debug for run_database_command to only print out the command --- modules/database.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/database.py b/modules/database.py index a7432d0..1a5ee7d 100644 --- a/modules/database.py +++ b/modules/database.py @@ -455,6 +455,15 @@ def run_database_command(cmd_string, username, hide=False): cmd_string=cmd_string, ) + if env.debug: + + # print out the full command and return + + logger = loggify('database', 'run_database_command') + logger.debug("run_database_command = %s" % cmd_full) + + return + # NOTE # DO NOT USE "with hide" # one of the commands is to access to psql commandline