[CRIU] [PATCH 05/11] p.haul: minor fixes in few log messages

Nikita Spiridonov nspiridonov at virtuozzo.com
Fri Mar 4 01:31:10 PST 2016


Add offset to few log messages to improve logs readability.

Signed-off-by: Nikita Spiridonov <nspiridonov at virtuozzo.com>
---
 phaul/criu_api.py |    2 +-
 phaul/mstats.py   |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/phaul/criu_api.py b/phaul/criu_api.py
index 7c87d2d..2bfbf65 100644
--- a/phaul/criu_api.py
+++ b/phaul/criu_api.py
@@ -31,7 +31,7 @@ class criu_conn:
 		self._shell_job = False
 		css = socket.socketpair(socket.AF_UNIX, socket.SOCK_SEQPACKET)
 		util.set_cloexec(css[1])
-		logging.info("`- Passing (ctl:%d, data:%d) pair to CRIU", css[0].fileno(), mem_sk.fileno())
+		logging.info("\t`- Passing (ctl:%d, data:%d) pair to CRIU", css[0].fileno(), mem_sk.fileno())
 		self._swrk = subprocess.Popen([criu_binary, "swrk", "%d" % css[0].fileno()])
 		css[0].close()
 		self._cs = css[1]
diff --git a/phaul/mstats.py b/phaul/mstats.py
index 793e84f..e6956dc 100644
--- a/phaul/mstats.py
+++ b/phaul/mstats.py
@@ -36,7 +36,7 @@ class migration_stats:
 
 	def __print_dstats(self, dstats):
 		if dstats:
-			logging.info("Dumped %d pages, %d skipped",
+			logging.info("\tDumped %d pages, %d skipped",
 				dstats.pages_written, dstats.pages_skipped_parent)
 
 	def __print_fsstats(self, fsstats):
@@ -45,7 +45,7 @@ class migration_stats:
 			mbytes_xferred = fsstats.bytes_xferred >> 20
 			if mbytes_xferred != 0:
 				mbytes_xferred_str = " (~{0}Mb)".format(mbytes_xferred)
-			logging.info("Fs driver transfer %d bytes%s",
+			logging.info("\tFs driver transfer %d bytes%s",
 				fsstats.bytes_xferred, mbytes_xferred_str)
 
 	def __print_overall_stats(self):
-- 
1.7.1



More information about the CRIU mailing list