Skip to content

Commit

Permalink
test: logger: start the VLC instance in quiet mode
Browse files Browse the repository at this point in the history
  • Loading branch information
garfvl committed May 3, 2024
1 parent 554da79 commit 7573bbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ def test_set_logger(self):
formatter = logging.Formatter('%(asctime)s;;;%(name)s;;;%(levelname)s;;;%(vlc_module)s;;;%(file)s;;;%(line)d;;;%(message)s')
handler.setFormatter(formatter)
vlc_logger.addHandler(handler)
instance = vlc.Instance('--vout dummy --aout dummy')
# start in quiet mode: we cannot control how to logs are produced
# before setting the logger
instance = vlc.Instance('--vout dummy --aout dummy --quiet')
instance.set_logger(vlc_logger)
player = instance.media_player_new()
media = instance.media_new(SAMPLE)
Expand Down

0 comments on commit 7573bbc

Please sign in to comment.