ef3f20
From daa38854c690f4523d0665785180a5a62431eba7 Mon Sep 17 00:00:00 2001
ef3f20
From: Lars Kellogg-Stedman <lars@redhat.com>
ef3f20
Date: Fri, 7 Apr 2017 19:09:13 -0400
ef3f20
Subject: [PATCH] remove 'tee' command from logging configuration
ef3f20
ef3f20
the default logging configuration passes all cloud-init output through
ef3f20
'tee' in order to generate /var/log/cloud-init-output.log.  This is
ef3f20
redundant on modern systems, since stdout/stderr are captured by
ef3f20
systemd and available via journalctl.
ef3f20
ef3f20
Resolves: rhbz#1424612
ef3f20
X-downstream-only: true
ef3f20
---
ef3f20
 config/cloud.cfg.d/05_logging.cfg | 5 -----
ef3f20
 1 file changed, 5 deletions(-)
ef3f20
ef3f20
diff --git a/config/cloud.cfg.d/05_logging.cfg b/config/cloud.cfg.d/05_logging.cfg
ef3f20
index 937b07f..4be8866 100644
ef3f20
--- a/config/cloud.cfg.d/05_logging.cfg
ef3f20
+++ b/config/cloud.cfg.d/05_logging.cfg
ef3f20
@@ -64,8 +64,3 @@ log_cfgs:
ef3f20
  - [ *log_base, *log_file ]
ef3f20
 # A file path can also be used.
ef3f20
 # - /etc/log.conf
ef3f20
-
ef3f20
-# This tells cloud-init to redirect its stdout and stderr to
ef3f20
-# 'tee -a /var/log/cloud-init-output.log' so the user can see output
ef3f20
-# there without needing to look on the console.
ef3f20
-output: {all: '| tee -a /var/log/cloud-init-output.log'}