From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3668B1382C5 for ; Sun, 24 Jan 2021 15:07:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 516DDE09C2; Sun, 24 Jan 2021 15:07:29 +0000 (UTC) Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10270E09C2 for ; Sun, 24 Jan 2021 15:07:27 +0000 (UTC) Received: by mail-qv1-f45.google.com with SMTP id u16so2642574qvo.9 for ; Sun, 24 Jan 2021 07:07:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ki8Th4aE7T/31JCtQ3pg/X/8drqjCHQ/lzgKFkf4WSI=; b=SsjNc6QmqnPIUC5sc0oj9FKERyjqIbmeiD5nrDW4G7Z5Us6A5gUqbez3xjaXzNtryI 2qrBHe2vHe9cJI03DEHoP8VyX6meWOhXSWJpeak1HJ7MxKHinuwBMhCFk1UzSjdZleNk hIuiDnskWYPyLRah8DN9OleXxixBK1cFE5NE7U0++NEG2a9te5mBPb0ZnYNltALir51W flYFIM6p9Yvz8XOMK2hAwY+eZkvNcQMY732ckJWqgOjGB5pzhdIr8cNIAvFFKvEFAOpa kgkLqUtqu8sgajVTgkj2zsmLA5cA5c8GE6BJ/QqHIgFQ3YYpNJnqzlnAcIad7ciqmMp4 hFWw== X-Gm-Message-State: AOAM532H+ZBaEUTVC1cbYQ7jy4VaNNentJQ0j1MlsQwogjUWXEmkKt1c TY1rbLUV2qt4+A9RoIKXuEWBnQOuQFE= X-Google-Smtp-Source: ABdhPJyEcwMJfkERk6KHPmL/twL9oVhGUPUeh+TuEUuanHSq+11LrcQ/pKF9HUf4r0nKl44zw9Et+Q== X-Received: by 2002:a0c:a541:: with SMTP id y59mr807792qvy.61.1611500846958; Sun, 24 Jan 2021 07:07:26 -0800 (PST) Received: from localhost ([208.104.103.123]) by smtp.gmail.com with ESMTPSA id g128sm10173151qkd.91.2021.01.24.07.07.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jan 2021 07:07:26 -0800 (PST) From: Matt Turner To: gentoo-catalyst@lists.gentoo.org Cc: Matt Turner Subject: [gentoo-catalyst] [PATCH 2/4] catalyst: Use lazy % formatting in logging functions Date: Sun, 24 Jan 2021 10:07:20 -0500 Message-Id: <20210124150722.760520-2-mattst88@gentoo.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210124150722.760520-1-mattst88@gentoo.org> References: <20210124150722.760520-1-mattst88@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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: f5529f05-a9aa-493b-a7cb-01456e9f6298 X-Archives-Hash: 4592d1a52a990801c0a5bb3ee4ec2e47 Signed-off-by: Matt Turner --- catalyst/base/stagebase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index 676206ff..badcfefa 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -823,7 +823,7 @@ class StageBase(TargetBase, ClearBase, GenBase): repo_conf_chroot = self.to_chroot(repo_conf) repo_conf_chroot.parent.mkdir(mode=0o755, parents=True, exist_ok=True) - log.info(f'Creating repo config {repo_conf_chroot}.') + log.info('Creating repo config %s.', repo_conf_chroot) try: with open(repo_conf_chroot, 'w') as f: @@ -846,10 +846,10 @@ class StageBase(TargetBase, ClearBase, GenBase): location_chroot = self.to_chroot(location) location_chroot.mkdir(mode=0o755, parents=True, exist_ok=True) - log.info(f'Copying overlay dir {x} to {location_chroot}') + log.info('Copying overlay dir %s to %s', x, location_chroot) cmd(f'cp -a {x}/* {location_chroot}', env=self.env) else: - log.warning(f'Skipping missing overlay {x}.') + log.warning('Skipping missing overlay %s.', x) def root_overlay(self): """ Copy over the root_overlay """ -- 2.26.2