From 54fc7f90fadf8e133dc3954e5d64bd484c32f40a Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Mon, 1 Oct 2012 21:32:50 +0100 Subject: [PATCH] Fix `log` calls. --- salt/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/salt/__init__.py b/salt/__init__.py index 4b412a720d..90de7e93b9 100644 --- a/salt/__init__.py +++ b/salt/__init__.py @@ -99,7 +99,8 @@ class Minion(parsers.MinionOptionParser): sys.exit(err.errno) self.setup_logfile_logger() - logging.getLogger(__name__).warn( + log = logging.getLogger(__name__) + log.warn( 'Setting up the Salt Minion "{0}"'.format( self.config['id'] ) @@ -146,7 +147,8 @@ class Syndic(parsers.SyndicOptionParser): sys.exit(err.errno) self.setup_logfile_logger() - logging.getLogger(__name__).warn( + log = logging.getLogger(__name__) + log.warn( 'Setting up the Salt Syndic Minion "{0}"'.format( self.config['id'] )