From 1df56a5c4a5c3bf05603f69e8f2a2163d471bc33 Mon Sep 17 00:00:00 2001 From: Zaina Afoulki Date: Wed, 21 Aug 2013 17:14:23 -0500 Subject: [PATCH] Adds Instance UUID to rsync debug logging This commit adds the instance uuid to the rsync debug output in the debug logs. The issue we were seeing is that when multiple migrations are ongoing at the same time, it's not easy to track the rsync progress of each migration. Fixes: bug #1215629 Change-Id: Iec662bdc0aed1c6f54ecaa062335dc5504ac030f --- plugins/xenserver/xenapi/etc/xapi.d/plugins/migration | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration b/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration index 02f6c2a54aac..bf5af304a9e3 100755 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration @@ -55,7 +55,7 @@ def _rsync_vhds(instance_uuid, host, staging_path, user="root"): rsync_progress = rsync_proc.stdout.readline() if not rsync_progress: break - logging.debug(rsync_progress) + logging.debug("[%s] %s" % (instance_uuid, rsync_progress)) utils.finish_subprocess(rsync_proc, rsync_cmd)