Commit 7f6b4e76 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Don't start the file logger when syslog is specified.

If --syslog is specified on the commandline then vlc loads the logger in file mode first, because --file-logging is the default. This is counter intuitive for users, they expect *only* syslog mode to be active. Note that the logger module can only have one mode active at the sametime, either html, text or syslog.
parent 68d84670
...@@ -929,7 +929,8 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, ...@@ -929,7 +929,8 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
} }
#endif #endif
if( config_GetInt( p_libvlc, "file-logging" ) > 0 ) if( (config_GetInt( p_libvlc, "file-logging" ) > 0) &&
!config_GetInt( p_libvlc, "syslog" ) )
{ {
libvlc_InternalAddIntf( p_libvlc, "logger,none" ); libvlc_InternalAddIntf( p_libvlc, "logger,none" );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment