From f96652f32428250dadff60fec809fe7ed8473640 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 25 Jun 2012 14:56:29 +0100 Subject: Remove optional msg argument from Submodule class Nobody was using this, so it is obviously useless. Instead, log at the warning level. --- morphlib/git.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'morphlib/git.py') diff --git a/morphlib/git.py b/morphlib/git.py index 5a3f8503..81e7213b 100644 --- a/morphlib/git.py +++ b/morphlib/git.py @@ -60,11 +60,10 @@ class MissingSubmoduleCommitError(cliapp.AppException): class Submodules(object): - def __init__(self, app, repo, ref, msg=logging.debug): + def __init__(self, app, repo, ref): self.app = app self.repo = repo self.ref = ref - self.msg = msg self.submodules = [] def load(self): @@ -120,7 +119,7 @@ class Submodules(object): # add a submodule object to the list self.submodules.append(submodule) else: - self.msg('Skipping submodule "%s" as %s:%s has ' + logging.warning('Skipping submodule "%s" as %s:%s has ' 'a non-commit object for it' % (submodule.name, self.repo, self.ref)) except cliapp.AppException: -- cgit v1.2.1