summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-08-05 19:36:53 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-08-05 19:36:53 -0400
commit4b994ffed113aaa4cc4363c34853cab5a13280c4 (patch)
tree2b104d0d88f7605d271a40bbded9e5e60991f03b
parentc8d3626c51bdc53781d9431b1da88ae1e92dc2d5 (diff)
avoid forcing syslog setting
This avoids forcing the setting to 0 if it was not set at all.
-rw-r--r--IkiWiki/Setup.pm2
-rw-r--r--IkiWiki/Setup/Standard.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Setup.pm b/IkiWiki/Setup.pm
index d2d1e4b8e..a34515f21 100644
--- a/IkiWiki/Setup.pm
+++ b/IkiWiki/Setup.pm
@@ -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());
diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm
index 8a11b2ec6..92f887f0c 100644
--- a/IkiWiki/Setup/Standard.pm
+++ b/IkiWiki/Setup/Standard.pm
@@ -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()) {