From 376d00946e596c9422b912fbf45644fe2ecaf62e Mon Sep 17 00:00:00 2001 From: LBolte29 <97528701+LBolte29@users.noreply.github.com> Date: Tue, 16 Aug 2022 07:41:55 +0100 Subject: [PATCH] replace pip in message (#2007) Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com> Co-authored-by: Theodore Aptekarev Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com> Co-authored-by: Chavithra --- .../core/log/generation/formatter_with_exceptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openbb_terminal/core/log/generation/formatter_with_exceptions.py b/openbb_terminal/core/log/generation/formatter_with_exceptions.py index 6a95418141a..70e156280f1 100644 --- a/openbb_terminal/core/log/generation/formatter_with_exceptions.py +++ b/openbb_terminal/core/log/generation/formatter_with_exceptions.py @@ -167,6 +167,8 @@ class FormatterWithExceptions(logging.Formatter): log_prefix_content = {**log_prefix_content, **log_extra} log_prefix = self.LOGPREFIXFORMAT % log_prefix_content + record.msg = record.msg.replace("|", "-MOCK_PIPE-") + log_line = super().format(record) log_line = self.filter_log_line(text=log_line) log_line_full = log_prefix + log_line