rdbms: improve query logging logic in Database
[lhc/web/wiklou.git] / includes / db / MWLBFactory.php
index be4f6ba..5b62984 100644 (file)
@@ -56,6 +56,7 @@ abstract class MWLBFactory {
                'DBuser',
                'DBWindowsAuthentication',
                'DebugDumpSql',
+               'DebugLogFile',
                'ExternalServers',
                'SQLiteDataDir',
                'SQLMode',
@@ -206,6 +207,7 @@ abstract class MWLBFactory {
 
                $flags = DBO_DEFAULT;
                $flags |= $options->get( 'DebugDumpSql' ) ? DBO_DEBUG : 0;
+               $flags |= $options->get( 'DebugLogFile' ) ? DBO_DEBUG : 0;
                if ( $server['type'] === 'oracle' ) {
                        $flags |= $options->get( 'DBOracleDRCP' ) ? DBO_PERSISTENT : 0;
                }