From aa9189e89ec101fba8ca36919a7c800f8b28d5c0 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sun, 1 Jul 2012 00:19:49 -0700 Subject: Add a multi log function that can write to stderr, console and a log debug, useful in certain cases --- bin/cloud-init | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bin/cloud-init') diff --git a/bin/cloud-init b/bin/cloud-init index 22901e15..fce4fe8c 100755 --- a/bin/cloud-init +++ b/bin/cloud-init @@ -86,9 +86,7 @@ def welcome(action): 'timestamp': util.time_rfc2822(), 'action': action, } - welcome_msg = "%s" % (templater.render_string(msg, tpl_params)) - sys.stderr.write("%s\n" % (welcome_msg)) - LOG.debug(welcome_msg) + util.multi_log("%s\n" % (templater.render_string(msg, tpl_params))) def extract_fns(args): -- cgit v1.2.3