summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-07-01 00:19:49 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-07-01 00:19:49 -0700
commitaa9189e89ec101fba8ca36919a7c800f8b28d5c0 (patch)
treee81d2709f813c8c48b3c0994496dce06c2c78047 /bin
parent342ffe553574c7662d143d3da76f8f4fb6587983 (diff)
downloadvyos-cloud-init-aa9189e89ec101fba8ca36919a7c800f8b28d5c0.tar.gz
vyos-cloud-init-aa9189e89ec101fba8ca36919a7c800f8b28d5c0.zip
Add a multi log function that can write to stderr, console and a log debug, useful in certain cases
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cloud-init4
1 files changed, 1 insertions, 3 deletions
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):