]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB.pm
Alle Datenbankverbindungen über DBIx::Log4perl laufen lassen, sofern dies in der...
[kivitendo-erp.git] / SL / DB.pm
index 67888ef5942f34174b5a7a45dc7986e40f4ed6a7..38441aabfd24aea67cb6cf27766e55ed057cf0ee 100644 (file)
--- a/SL/DB.pm
+++ b/SL/DB.pm
@@ -16,17 +16,7 @@ my (%_db_registered, %_initial_sql_executed);
 sub dbi_connect {
   shift;
 
-  return DBI->connect(@_) unless $::lx_office_conf{debug} && $::lx_office_conf{debug}->{dbix_log4perl};
-
-  require Log::Log4perl;
-  require DBIx::Log4perl;
-
-  my $filename =  $LXDebug::file_name;
-  my $config   =  $::lx_office_conf{debug}->{dbix_log4perl_config};
-  $config      =~ s/LXDEBUGFILE/${filename}/g;
-
-  Log::Log4perl->init(\$config);
-  return DBIx::Log4perl->connect(@_);
+  return SL::DBConnect->connect(@_);
 }
 
 sub create {