Commit 71e3f2f1 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.
(cherry picked from commit 5e2f7b2f90dbab0488d62557ba59159925a88e3a)
parent acf6c18f
......@@ -858,7 +858,8 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
}
#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" );
}
......
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