Avoid duplicate logs
This commit is contained in:
parent
7edf2eacea
commit
8eac8c0c84
@ -349,7 +349,7 @@ class DoliDBMssql extends DoliDB
|
|||||||
|
|
||||||
//print "<!--".$query."-->";
|
//print "<!--".$query."-->";
|
||||||
|
|
||||||
dol_syslog('sql='.$query, LOG_DEBUG);
|
if (! in_array($query,array('BEGIN','COMMIT','ROLLBACK'))) dol_syslog('sql='.$query, LOG_DEBUG);
|
||||||
|
|
||||||
if (! $this->database_name)
|
if (! $this->database_name)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -252,7 +252,7 @@ class DoliDBMysql extends DoliDB
|
|||||||
{
|
{
|
||||||
$query = trim($query);
|
$query = trim($query);
|
||||||
|
|
||||||
dol_syslog('sql='.$query, LOG_DEBUG);
|
if (! in_array($query,array('BEGIN','COMMIT','ROLLBACK'))) dol_syslog('sql='.$query, LOG_DEBUG);
|
||||||
|
|
||||||
if (! $this->database_name)
|
if (! $this->database_name)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -256,7 +256,7 @@ class DoliDBMysqli extends DoliDB
|
|||||||
{
|
{
|
||||||
$query = trim($query);
|
$query = trim($query);
|
||||||
|
|
||||||
dol_syslog('sql='.$query, LOG_DEBUG);
|
if (! in_array($query,array('BEGIN','COMMIT','ROLLBACK'))) dol_syslog('sql='.$query, LOG_DEBUG);
|
||||||
|
|
||||||
if (! $this->database_name)
|
if (! $this->database_name)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001 Fabien Seisen <seisen@linuxfr.org>
|
/* Copyright (C) 2001 Fabien Seisen <seisen@linuxfr.org>
|
||||||
* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
@ -491,7 +491,7 @@ class DoliDBPgsql extends DoliDB
|
|||||||
@pg_query($this->db, 'SAVEPOINT mysavepoint');
|
@pg_query($this->db, 'SAVEPOINT mysavepoint');
|
||||||
}
|
}
|
||||||
|
|
||||||
dol_syslog('sql='.$query, LOG_DEBUG);
|
if (! in_array($query,array('BEGIN','COMMIT','ROLLBACK'))) dol_syslog('sql='.$query, LOG_DEBUG);
|
||||||
|
|
||||||
$ret = @pg_query($this->db, $query);
|
$ret = @pg_query($this->db, $query);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user