From 21fb872a5161e776847149acd234e257d1a7a267 Mon Sep 17 00:00:00 2001 From: Vladimir Borisov Date: Tue, 28 Jan 2025 11:12:07 +0200 Subject: [PATCH] Disable player loggin in release --- src/stremio_app/stremio_player/player.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stremio_app/stremio_player/player.rs b/src/stremio_app/stremio_player/player.rs index 3eeb3db..83f89fb 100644 --- a/src/stremio_app/stremio_player/player.rs +++ b/src/stremio_app/stremio_player/player.rs @@ -70,7 +70,10 @@ fn create_shareable_mpv(window_handle: HWND) -> Arc { set_property!("title", "Stremio"); set_property!("audio-client-name", "Stremio"); set_property!("terminal", "yes"); + #[cfg(debug_assertions)] set_property!("msg-level", "all=no,cplayer=debug"); + #[cfg(not(debug_assertions))] + set_property!("msg-level", "all=no"); set_property!("quiet", "yes"); set_property!("hwdec", "auto"); Ok(())