Commit 9a48b402 authored by Gavin Brown's avatar Gavin Brown

fix function name

parent e4eacc42
......@@ -39,7 +39,7 @@ pod2usage('-verbose' => 99, '-sections' => 'USAGE|OPTIONS') if ($help);
$foreground = $foreground || $debug;
openlog('dsd', 'ndelay,perror,pid', LOG_DAEMON);
logmask(LOG_UPTO($debug ? LOG_DEBUG : LOG_INFO));
setlogmask(LOG_UPTO($debug ? LOG_DEBUG : LOG_INFO));
my $config = Config::Simple->new($file)->hashref;
......
......@@ -12,7 +12,7 @@ use Sys::Syslog qw(:standard :macros);
use strict;
openlog('dsd-db', 'ndelay,perror,pid', LOG_DAEMON);
logmask(LOG_UPTO(LOG_INFO));
setlogmask(LOG_UPTO(LOG_INFO));
my $file = '/etc/dsd/dsd.conf';
my $help;
......
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