Permalink
Browse files

cleanup logging of xtrabackup's pre-command

  • Loading branch information...
1 parent aa89a8c commit 70da89fd9f319faf211aee3addb12d5819420ec6 @abg abg committed Jan 9, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugins/holland.backup.xtrabackup/holland/backup/xtrabackup/util.py
@@ -143,6 +143,7 @@ def execute_pre_command(pre_command, **kwargs):
return
pre_command = Template(pre_command).safe_substitute(**kwargs)
+ LOG.info("Executing pre-command: %s", pre_command)
try:
process = Popen(pre_command,
stdout=PIPE,
@@ -155,7 +156,7 @@ def execute_pre_command(pre_command, **kwargs):
(pre_command, exc.strerror))
for line in process.stdout:
- LOG.info("[pre-command pid=%d]: >> %s", process.pid, line)
+ LOG.info(" >> %s", process.pid, line)
returncode = process.wait()
if returncode != 0:
raise BackupError("pre-command exited with failure status [%d]" %

0 comments on commit 70da89f

Please sign in to comment.