MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / setSerialDebugLogging

Method setSerialDebugLogging

src/astroprint/printer/__init__.py:409–418  ·  view source on GitHub ↗
(self, active)

Source from the content-addressed store, hash-verified

407 "filament": filament,
408 }
409 def setSerialDebugLogging(self, active):
410 serialLogger = logging.getLogger("SERIAL")
411 if active:
412 serialLogger.setLevel(logging.DEBUG)
413 serialLogger.debug("Enabling serial logging")
414 else:
415 serialLogger.debug("Disabling serial logging")
416 serialLogger.setLevel(logging.CRITICAL)
417
418 self.resetSerialLogging()
419
420 def isConnecting(self):
421 return self._state == self.STATE_CONNECTING

Callers 2

changeSerialLogsMethod · 0.80
changeSerialLogsFunction · 0.80

Calls 1

resetSerialLoggingMethod · 0.95

Tested by

no test coverage detected