From a85c7cc0974447dbe1e394b067ecc52bf49020e2 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Fri, 29 Oct 2021 09:07:17 -0700 Subject: [PATCH] Temp logger fix to prevent encoding based errors --- lib/vagrant/util/logging_formatter.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/util/logging_formatter.rb b/lib/vagrant/util/logging_formatter.rb index bc7f74e62..e1b00aaab 100644 --- a/lib/vagrant/util/logging_formatter.rb +++ b/lib/vagrant/util/logging_formatter.rb @@ -35,7 +35,11 @@ module Vagrant } d["@caller"] = event.tracer[0] if event.tracer - d.to_json + "\n" + # TODO(spox): fix this with force encoding on the message + begin + d.to_json + "\n" + rescue + end end end end