24 |
upstream_ldap => 'ldap.ffzg.hr', |
upstream_ldap => 'ldap.ffzg.hr', |
25 |
upstream_ssl => 1, |
upstream_ssl => 1, |
26 |
overlay_prefix => 'ffzg-', |
overlay_prefix => 'ffzg-', |
27 |
|
log_file => 'log', |
28 |
|
|
29 |
}; |
}; |
30 |
|
|
31 |
|
my $log_fh; |
32 |
|
|
33 |
|
sub log { |
34 |
|
open($log_fh, '>', $config->{log_file}) || die "can't open ", $config->{log_file},": $!"; |
35 |
|
$log_fh->autoflush(1); |
36 |
|
print $log_fh join("\n", @_),"\n"; |
37 |
|
} |
38 |
|
|
39 |
|
BEGIN { |
40 |
|
$SIG{'__WARN__'} = sub { warn @_; main::log(@_); } |
41 |
|
} |
42 |
|
|
43 |
|
|
44 |
if ( ! -d $config->{yaml_dir} ) { |
if ( ! -d $config->{yaml_dir} ) { |
45 |
warn "DISABLE ", $config->{yaml_dir}," data overlay"; |
warn "DISABLE ", $config->{yaml_dir}," data overlay"; |
46 |
} |
} |