log: reduce spam
This commit is contained in:
parent
f5b8ae1002
commit
b8e819629a
@ -209,7 +209,6 @@ class Printer:
|
||||
def get_output_pins(self):
|
||||
output_pins = []
|
||||
output_pins.extend(iter(self.get_config_section_list("output_pin ")))
|
||||
logging.debug(f"{output_pins}")
|
||||
return output_pins
|
||||
|
||||
def get_gcode_macros(self):
|
||||
|
@ -118,7 +118,6 @@ class NetworkPanel(ScreenPanel):
|
||||
def add_network(self, ssid, show=True):
|
||||
|
||||
if ssid is None:
|
||||
logging.info("SSID is None")
|
||||
return
|
||||
ssid = ssid.strip()
|
||||
if ssid in list(self.networks):
|
||||
@ -314,7 +313,6 @@ class NetworkPanel(ScreenPanel):
|
||||
def remove_network(self, ssid, show=True):
|
||||
if ssid not in list(self.networks):
|
||||
return
|
||||
logging.info(self.labels['networklist'])
|
||||
for i in range(len(self.labels['networklist'])):
|
||||
if self.networks[ssid] == self.labels['networklist'].get_child_at(0, i):
|
||||
self.labels['networklist'].remove_row(i)
|
||||
|
@ -931,7 +931,7 @@ class KlipperScreen(Gtk.Window):
|
||||
self.panels['splash_screen'].update_text(text)
|
||||
|
||||
def search_power_devices(self, power_devices):
|
||||
if self.connected_printer is None:
|
||||
if self.connected_printer is None or not power_devices:
|
||||
return
|
||||
found_devices = []
|
||||
devices = self.printer.get_power_devices()
|
||||
@ -945,7 +945,7 @@ class KlipperScreen(Gtk.Window):
|
||||
logging.info("Found %s", found_devices)
|
||||
return found_devices
|
||||
else:
|
||||
logging.info("Power devices not found")
|
||||
logging.info("Associated power devices not found")
|
||||
return None
|
||||
|
||||
def power_on(self, widget, devices):
|
||||
|
Loading…
x
Reference in New Issue
Block a user