From c6ed5bcf6e1356ec93e05c8150e0539f223f223f Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Thu, 6 May 2021 02:36:29 +0200 Subject: [PATCH] display: log handling improved --- scripts/planktoscope/display.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/planktoscope/display.py b/scripts/planktoscope/display.py index abf0347..48e66d2 100644 --- a/scripts/planktoscope/display.py +++ b/scripts/planktoscope/display.py @@ -37,7 +37,8 @@ class Display(object): self.display_text(machineName.replace(" ", "\n")) def display_text(self, message): - logger.info(f"Displaying message {message}") + text = message.replace("\n", " ") + logger.info(f"Displaying message {text}") # Clear display. self.__clear()