diff --git a/jtop/gui/lib/chart.py b/jtop/gui/lib/chart.py index 10957494..f25fcefe 100644 --- a/jtop/gui/lib/chart.py +++ b/jtop/gui/lib/chart.py @@ -21,9 +21,6 @@ import curses from collections import deque from .common import check_curses -import logging -# Create logger -logger = logging.getLogger(__name__) class Chart(object): @@ -38,7 +35,6 @@ class Chart(object): """ def __init__(self, jetson, name, callback, type_value=int, line="*", color_text=curses.COLOR_WHITE, color_chart=[], fill=True, time=10.0, tik=2): - logger.info(f"{Chart.COLOR_COUNTER}") self._color_obj_counter = Chart.COLOR_COUNTER self.jetson = jetson self.name = name @@ -77,16 +73,6 @@ def __init__(self, jetson, name, callback, type_value=int, line="*", color_text= for idy, color_set in enumerate(list_element): idx_name = Chart.OFFSET_COLOR_CHART + self._color_obj_counter + (len(self.color_chart) - idx - 1) * color_step + idy second_color = self.color_chart[color_set[1]] if color_set[1] < len(self.color_chart) else curses.COLOR_BLACK - logger.info("-------------------------------------") - logger.info(f"{self.color_chart}") - logger.info(f"{values}") - logger.info(f"{self._combinations}") - logger.info(f"{Chart.OFFSET_COLOR_CHART}") - logger.info(f"{self._color_obj_counter}") - logger.info(f"{(len(self.color_chart) - idx - 1)}") - logger.info(f"{len(self.color_chart)}") - logger.info(f"{color_step}") - logger.info(f"Idx_name: {idx_name}") curses.init_pair(idx_name, self.color_chart[color_set[0]], second_color) except curses.error: curses.use_default_colors()