Jakeler / ble-serial

"RFCOMM for BLE" a UART over Bluetooth low energy (4+) bridge for Linux, Mac and Windows
https://blog.ja-ke.tech/tags/#bluetooth
MIT License
251 stars 37 forks source link

Add super verbose mode for the bleak logger #50

Closed Jakeler closed 2 years ago

Jakeler commented 2 years ago

Currently the bleak logger is hardcoded to INFO level here: https://github.com/Jakeler/ble-serial/blob/v2.4.1/ble_serial/log/console_log.py#L4

Reason at the time was that bleak at DEBUG level produces huge logs, this is not needed in most cases and makes errors hard to spot. Now we had cases where the connection fails somewhere in bleak, so having a super verbose option would be useful.

Idea would is to use -vv for it, but I have to check if argparse supports this in combination with long options.