Skip to content

How to disable logging when parsing output? #30

Discussion options

You must be logged in to vote
  1. Don't set the undermentioned:

    logging.basicConfig(level=logging.DEBUG)
  2. ...per the undermentioned:

    >>> sbc.list_monitors()
    ['DP-2']
    >>> logging.basicConfig(level=logging.DEBUG)
    >>> sbc.list_monitors()
    DEBUG:screen_brightness_control.helpers:cache get 'i2c_display_info' = [KeyError]
    DEBUG:screen_brightness_control.helpers:cache get 'ddcutil_monitors_info' = [KeyError]
    WARNING:screen_brightness_control.linux:error grabbing display info from <class 'screen_brightness_control.linux.DDCUtil'> - FileNotFoundError: [Errno 2] No such file or directory: 'ddcutil'
    WARNING:screen_brightness_control.linux:error grabbing display info from <class 'screen_brightness_control.linux.Light'> - FileNotFo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RokeJulianLockhart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant