startup.pl: use ErrorLog file from Apache2 config

requires Apache2::Log from libapache2-mod-perl2
This commit is contained in:
Milan
2023-05-22 23:51:05 +02:00
parent fe857c6f65
commit 4cba61bf06

View File

@@ -1,6 +1,12 @@
use lib qw(/home/radio/calcms/calcms/); use lib qw(/home/radio/calcms/calcms/);
use lib qw(/home/calcms/lib/calcms/); use lib qw(/home/calcms/lib/calcms/);
use Apache2::Log;
local *CORE::GLOBAL::warn = \&Apache2::ServerRec::warn;
local $SIG{__WARN__} = \&Apache2::ServerRec::warn;
# ^ use ErrorLog file set at Apache2 configuration
# see https://perl.apache.org/docs/2.0/api/Apache2/Log.html for details
use Data::Dumper; use Data::Dumper;
#use Apache::DBI(); #use Apache::DBI();
use Time::Local(); use Time::Local();