From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F397813888F for ; Sun, 11 Oct 2015 06:29:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 721CD21C008; Sun, 11 Oct 2015 06:29:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D497AE07C9 for ; Sun, 11 Oct 2015 06:29:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 157DD340662 for ; Sun, 11 Oct 2015 06:29:18 +0000 (UTC) From: Mike Frysinger To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH 07/10] livecd_stage: convert to log module Date: Sun, 11 Oct 2015 02:29:09 -0400 Message-Id: <1444544952-32408-7-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 2.5.2 In-Reply-To: <1444544952-32408-1-git-send-email-vapier@gentoo.org> References: <1444544952-32408-1-git-send-email-vapier@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Archives-Salt: ee047ac4-ebd3-4ac6-be87-dac64275d5b6 X-Archives-Hash: a6d39443bcae667c881e27ab3c757b45 --- catalyst/targets/livecd_stage1.py | 4 ++-- catalyst/targets/livecd_stage2.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/catalyst/targets/livecd_stage1.py b/catalyst/targets/livecd_stage1.py index 262db70..8d9dcc7 100644 --- a/catalyst/targets/livecd_stage1.py +++ b/catalyst/targets/livecd_stage1.py @@ -6,7 +6,7 @@ LiveCD stage1 target import os import types - +from catalyst import log from catalyst.support import (normpath, cmd) from catalyst.fileops import ensure_dirs @@ -34,7 +34,7 @@ class livecd_stage1(StageBase): self.settings["target_path"]=normpath(self.settings["storedir"]+"/builds/"+self.settings["target_subpath"]) if "autoresume" in self.settings["options"] \ and self.resume.is_enabled("setup_target_path"): - print "Resume point detected, skipping target path setup operation..." + log.notice('Resume point detected, skipping target path setup operation...') else: # first clean up any existing target stuff if os.path.exists(self.settings["target_path"]): diff --git a/catalyst/targets/livecd_stage2.py b/catalyst/targets/livecd_stage2.py index b54f2f0..fa76421 100644 --- a/catalyst/targets/livecd_stage2.py +++ b/catalyst/targets/livecd_stage2.py @@ -5,6 +5,7 @@ LiveCD stage2 target, builds upon previous LiveCD stage1 tarball import os +from catalyst import log from catalyst.support import (normpath, file_locate, CatalystError, cmd) from catalyst.fileops import ensure_dirs from catalyst.base.stagebase import StageBase @@ -55,7 +56,7 @@ class livecd_stage2(StageBase): self.settings["target_path"]=normpath(self.settings["storedir"]+"/builds/"+self.settings["target_subpath"]) if "autoresume" in self.settings["options"] \ and self.resume.is_enabled("setup_target_path"): - print "Resume point detected, skipping target path setup operation..." + log.notice('Resume point detected, skipping target path setup operation...') else: # first clean up any existing target stuff if os.path.isdir(self.settings["target_path"]): -- 2.5.2