I’m struggling to debug an issue users are reporting with the kicad JLCPCB tools plugin. I feel like this is due to a misusage of queues or objects but I’m stuck without any next step ideas.
I’ve also reported it on the wxPython discussion group.
The argument is coming in as LogRecord, we are generating a local like:
msg = self.format(record)
Which looks like its calling logging.Handler.format
and then we build a local to pass it to the queue via wx.QueueEvent, formatting it with an f-string:
def emit(self, record):
"""Marshal the event over to the main thread."""
msg = self.format(record)
wx.QueueEvent(self.event_destination, LogboxAppendEvent(
msg=f"{msg}n"
)
)