add debug for run_database_command to only print out the command
This commit is contained in:
parent
381c8a0568
commit
8ae7324ea3
1 changed files with 9 additions and 0 deletions
|
|
@ -455,6 +455,15 @@ def run_database_command(cmd_string, username, hide=False):
|
||||||
cmd_string=cmd_string,
|
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
|
# NOTE
|
||||||
# DO NOT USE "with hide"
|
# DO NOT USE "with hide"
|
||||||
# one of the commands is to access to psql commandline
|
# one of the commands is to access to psql commandline
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue