summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJames Falcon <TheRealFalcon@users.noreply.github.com>2020-06-12 14:48:53 -0500
committerGitHub <noreply@github.com>2020-06-12 15:48:53 -0400
commit287bfca19d8ed386cd41dbc47753b7711ac1c848 (patch)
tree1f285e26484d1961aa5ed288d65d00c467a40271 /config
parent318d154b8be1f50d1ebb0ed7451f63d6e330f985 (diff)
downloadvyos-cloud-init-287bfca19d8ed386cd41dbc47753b7711ac1c848.tar.gz
vyos-cloud-init-287bfca19d8ed386cd41dbc47753b7711ac1c848.zip
Default to UTF-8 in /var/log/cloud-init.log (#427)
On a system with a non-utf8 default locale, the logger will silently not log anything if the message contains an unsupported character.
Diffstat (limited to 'config')
-rw-r--r--config/cloud.cfg.d/05_logging.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/cloud.cfg.d/05_logging.cfg b/config/cloud.cfg.d/05_logging.cfg
index 937b07f8..bf917a95 100644
--- a/config/cloud.cfg.d/05_logging.cfg
+++ b/config/cloud.cfg.d/05_logging.cfg
@@ -44,7 +44,7 @@ _log:
class=FileHandler
level=DEBUG
formatter=arg0Formatter
- args=('/var/log/cloud-init.log',)
+ args=('/var/log/cloud-init.log', 'a', 'UTF-8')
- &log_syslog |
[handler_cloudLogHandler]
class=handlers.SysLogHandler