Inverted logic for log level validationd
This commit is contained in:
parent
3d6195bbcb
commit
c62109d263
|
@ -433,7 +433,7 @@ while (my $arg = shift(@ARGV)) {
|
||||||
$wp->do_log("LOG_DEBUG", "Validating arguments");
|
$wp->do_log("LOG_DEBUG", "Validating arguments");
|
||||||
die "Invalid rotation delay: $delay" if (defined($delay) && $delay !~ m/^\d+$/);
|
die "Invalid rotation delay: $delay" if (defined($delay) && $delay !~ m/^\d+$/);
|
||||||
die "Invalid wallpaper path '$path'. Not a directory." if (defined($path) && !-d $path);
|
die "Invalid wallpaper path '$path'. Not a directory." if (defined($path) && !-d $path);
|
||||||
die "Invalid verbosity level: '$verbose'\n" if (defined($verbose) && $verbose =~ m/^[1-8]$/);
|
die "Invalid verbosity level: '$verbose'\n" if (defined($verbose) && $verbose !~ m/^[1-8]$/);
|
||||||
|
|
||||||
$wp->do_log("LOG_DEBUG", "Configuring object");
|
$wp->do_log("LOG_DEBUG", "Configuring object");
|
||||||
$wp->{targets} = \@targets || undef;
|
$wp->{targets} = \@targets || undef;
|
||||||
|
|
Loading…
Reference in New Issue