[vlc-devel] [PATCH 3/4] medialibrary: Use higher log level when debugging

Hugo Beauzée-Luyssen hugo at beauzee.fr
Tue Jun 25 16:04:54 CEST 2019


---
 modules/misc/medialibrary/medialib.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/misc/medialibrary/medialib.cpp b/modules/misc/medialibrary/medialib.cpp
index 99eb8b3a91..c518bc9c4b 100644
--- a/modules/misc/medialibrary/medialib.cpp
+++ b/modules/misc/medialibrary/medialib.cpp
@@ -299,7 +299,8 @@ bool MediaLibrary::Start()
     std::unique_ptr<medialibrary::IMediaLibrary> ml( NewMediaLibrary() );
 
     m_logger.reset( new Logger( VLC_OBJECT( m_vlc_ml ) ) );
-    ml->setVerbosity( medialibrary::LogLevel::Info );
+    ml->setVerbosity( var_InheritInteger( VLC_OBJECT( m_vlc_ml ), "verbose" ) >= 4 ?
+                          medialibrary::LogLevel::Debug : medialibrary::LogLevel::Info );
     ml->setLogger( m_logger.get() );
 
     auto userDir = vlc::wrap_cptr( config_GetUserDir( VLC_USERDATA_DIR ) );
-- 
2.20.1



More information about the vlc-devel mailing list