add debug for run_database_command to only print out the command

This commit is contained in:
Ronny Abraham 2019-06-02 22:52:07 +03:00
parent 381c8a0568
commit 8ae7324ea3

View file

@ -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