1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-03-16 03:29:18 +01:00

take logfile from env if set, default to /var/log/syslog

This commit is contained in:
Klas Lindfors 2014-09-24 14:53:17 +02:00
parent 92297d3c4d
commit c62cc86ab1

View File

@ -32,8 +32,12 @@
use strict;
use warnings;
use Env qw/YKVAL_LOGFILE/;
my @types = qw/OK BAD_OTP MISSING_PARAMETER BACKEND_ERROR BAD_SIGNATURE DELAYED_OTP NO_SUCH_CLIENT NOT_ENOUGH_ANSWERS REPLAYED_REQUEST REPLAYED_OTP OPERATION_NOT_ALLOWED/;
my $logfile = "/var/log/syslog";
my $logfile = $YKVAL_LOGFILE;
$logfile = "/var/log/syslog" unless $logfile;
if(@ARGV > 0) {
if($ARGV[0] eq "autoconf") {