logging: cleanup unnecesary lines

This commit is contained in:
alfrix committed 2022-03-21 06:34:02 -03:00
1 parent 50e72b0308
commit 5286e433fe
2 files changed
+4 -3

No files matched your search

+3 -3
View File
@@ -85,7 +85,7 @@ class KlippyGtk:
return (self.width - self.get_action_bar_width()) * self.keyboard_ratio
def get_temp_color(self, device):
logging.debug("Color list %s" % self.color_list)
# logging.debug("Color list %s" % self.color_list)
if device not in self.color_list:
return False, False
@@ -96,7 +96,7 @@ class KlippyGtk:
self.color_list[device]['state'] += 1
color = '{:02X}{:02X}{:02X}'.format(rgb[0], rgb[1], rgb[2])
rgb = [x/255 for x in rgb]
logging.debug("Assigning color: %s %s %s" % (device, rgb, color))
# logging.debug("Assigning color: %s %s %s" % (device, rgb, color))
else:
colors = self.color_list[device]['colors']
if self.color_list[device]['state'] >= len(colors):
@@ -104,7 +104,7 @@ class KlippyGtk:
color = colors[self.color_list[device]['state'] % len(colors)]
rgb = [int(color[i:i+2], 16)/255 for i in range(0, 6, 2)]
self.color_list[device]['state'] += 1
logging.debug("Assigning color: %s %s %s" % (device, rgb, color))
# logging.debug("Assigning color: %s %s %s" % (device, rgb, color))
return rgb, color
+1
View File
@@ -27,6 +27,7 @@ from ks_includes.printer import Printer
from ks_includes.config import KlipperScreenConfig
from panels.base_panel import BasePanel
logging.getLogger("urllib3").setLevel(logging.WARNING)
logging.getLogger('matplotlib').setLevel(logging.WARNING)
# This is here to avoid performance issues opening bed_mesh
import matplotlib.pyplot # noqa