[vlc-commits] medialibrary: Use higher log level when debugging
Hugo Beauzée-Luyssen
git at videolan.org
Wed Jun 26 18:25:42 CEST 2019
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Apr 18 11:49:34 2019 +0200| [2e5165a6d82ad68b7bacae2d3866a902c07bff02] | committer: Hugo Beauzée-Luyssen
medialibrary: Use higher log level when debugging
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e5165a6d82ad68b7bacae2d3866a902c07bff02
---
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 ) );
More information about the vlc-commits
mailing list