]> git.sesse.net Git - vlc/commitdiff
Don't start the file logger when syslog is specified.
authorJean-Paul Saman <jpsaman@videolan.org>
Mon, 6 Oct 2008 14:21:40 +0000 (16:21 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Tue, 14 Oct 2008 13:07:28 +0000 (15:07 +0200)
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.

src/libvlc.c

index 1c15fcbefe0ff91acf2818adc70685499ce3675f..f300daa0e6feb16099a9e7fd4289e63e85782c79 100644 (file)
@@ -929,7 +929,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" );
     }