Commit 69397e05 authored by Gavin Brown's avatar Gavin Brown

set log mask

parent 28c3985c
......@@ -21,8 +21,6 @@ use Sys::Syslog qw(:standard :macros);
use Time::HiRes qw(time ualarm);
use strict;
openlog('dsd', 'ndelay,perror,pid', LOG_DAEMON);
my $file = '/etc/dsd/dsd.conf';
my $foreground;
my $debug;
......@@ -40,6 +38,9 @@ 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));
my $config = Config::Simple->new($file)->hashref;
check_config($config) || die("Bad config");
......
......@@ -12,6 +12,7 @@ use Sys::Syslog qw(:standard :macros);
use strict;
openlog('dsd-db', 'ndelay,perror,pid', LOG_DAEMON);
logmask(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