avoid forcing syslog setting

This avoids forcing the setting to 0 if it was not set at all.
master
Joey Hess 2008-08-05 19:36:53 -04:00
parent c8d3626c51
commit 4b994ffed1
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ sub getsetup () { #{{{
# disable logging to syslog while dumping, broken plugins may
# whine when loaded
my $syslog=$config{syslog};
$config{syslog}=0;
$config{syslog}=undef;
# Load all plugins, so that all setup options are available.
my @plugins=grep { $_ ne $config{rcs} } sort(IkiWiki::listplugins());

View File

@ -86,7 +86,7 @@ sub gendump ($) { #{{{
my @ret;
# disable logging to syslog while dumping
$config{syslog}=0;
$config{syslog}=undef;
push @ret, dumpvalues(\%setup, IkiWiki::getsetup());
foreach my $pair (IkiWiki::Setup::getsetup()) {