10 # print STDERR "Starting full caller dump:\n";
12 # while (my ($dummy, $filename, $line, $subroutine) = caller $level) {
13 # print STDERR " ${subroutine} from ${filename}:${line}\n";
17 return DBI->connect(@_) unless $::lx_office_conf{debug} && $::lx_office_conf{debug}->{dbix_log4perl};
19 require Log::Log4perl;
20 require DBIx::Log4perl;
22 my $filename = $::lxdebug->file;
23 my $config = $::lx_office_conf{debug}->{dbix_log4perl_config};
24 $config =~ s/LXDEBUGFILE/${filename}/g;
26 Log::Log4perl->init(\$config);
27 return DBIx::Log4perl->connect(@_);
33 pg_enable_utf8 => $::locale->is_utf8,