OpenXbox / xbox-smartglass-core-python

SmartGlass Core protocol python library
https://pypi.python.org/pypi/xbox-smartglass-core
MIT License
72 stars 14 forks source link

reduce logging to INFO? #26

Closed gytisgreitai closed 4 years ago

gytisgreitai commented 5 years ago

Any way to reduce logging?

Sep 18 22:43:33 pot xbox-rest-server[29310]: [2019-09-18 22:43:33,809] DEBUG in protocol: Received Ack message on ServiceChannel Ack from 192.168.3.20
Sep 18 22:43:33 pot xbox-rest-server[29310]: [2019-09-18 22:43:33,814] DEBUG in protocol: Sending Ack message on ServiceChannel Core to 192.168.3.20
Sep 18 22:43:33 pot xbox-rest-server[29310]: [2019-09-18 22:43:33,818] DEBUG in protocol: Received Ack message on ServiceChannel Ack from 192.168.3.20

tried -l /dev/null but that does not seem to help, it still logs to stdout

tuxuser commented 4 years ago

You can now pass the -v argument to the console-interacting CLI scripts. Add more v to increase loglevel.

Like this

Log levels:
-v: INFO
-vv: DEBUG
-vvv: DEBUG_INCL_PACKETS

If that switch is not provided at all, it will default to Loglevel WARNING