Closed flit closed 3 years ago
HEllo, I understand that this DEBUG log is little bit annoying, but is in DEBUG mode! and there are some annoying lines. In fact you can see home many times the library has been openned.
At the moment I'm keeping this line as is, hopes that you understand. Petr
Pypemicro repeatedly outputs the same log message when opening the PEMicro library. This is annoying for pyocd users when it is polling for devices.
The request is that pypemicro track that it has logged info about the library, so it only logs once per process.
We should also consider using the passed-in loggers for all logging. This allows pyocd to redirect the pypemicro logging to a trace log. However, I have mixed feeling about this, since technically using its own logger is correct. Passed-in loggers are used for the JLink probe only because in that case, the logging is being done by the JLink shared lib and being redirected to a Python library by the C callback. So maybe pyocd should just set the pypemicro logger level directly?
Example log: