diff --git a/dev/skeletons/skeleton_class.class.php b/dev/skeletons/skeleton_class.class.php
index c36dad4b4b5..53f6d0a66f3 100644
--- a/dev/skeletons/skeleton_class.class.php
+++ b/dev/skeletons/skeleton_class.class.php
@@ -91,7 +91,7 @@ class Skeleton_Class extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -149,7 +149,7 @@ class Skeleton_Class extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."mytable as t";
$sql.= " WHERE t.rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch");
$resql=$this->db->query($sql);
if ($resql)
{
@@ -204,7 +204,7 @@ class Skeleton_Class extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update");
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -278,7 +278,7 @@ class Skeleton_Class extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."mytable";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete");
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
}
diff --git a/dev/skeletons/skeleton_page.php b/dev/skeletons/skeleton_page.php
index bf63a769af7..00222bcce61 100644
--- a/dev/skeletons/skeleton_page.php
+++ b/dev/skeletons/skeleton_page.php
@@ -139,7 +139,7 @@ if ($action == 'list')
print_liste_field_titre($langs->trans('field2'),$_SERVER['PHP_SELF'],'t.field2','',$param,'',$sortfield,$sortorder);
print '';
- dol_syslog($script_file." sql=".$sql, LOG_DEBUG);
+ dol_syslog($script_file, LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/dev/skeletons/skeleton_script.php b/dev/skeletons/skeleton_script.php
index b10b57a730a..877a420d6af 100644
--- a/dev/skeletons/skeleton_script.php
+++ b/dev/skeletons/skeleton_script.php
@@ -119,7 +119,7 @@ $sql.= " FROM ".MAIN_DB_PREFIX."skeleton";
$sql.= " WHERE field3 = 'xxx'";
$sql.= " ORDER BY field1 ASC";
-dol_syslog($script_file." sql=".$sql, LOG_DEBUG);
+dol_syslog($script_file, LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/adherents/card_subscriptions.php b/htdocs/adherents/card_subscriptions.php
index 0fcedb8e96d..e120ea96360 100644
--- a/htdocs/adherents/card_subscriptions.php
+++ b/htdocs/adherents/card_subscriptions.php
@@ -307,7 +307,7 @@ if ($user->rights->adherent->cotisation->creer && $action == 'cotisation' && ! $
$sql ="UPDATE ".MAIN_DB_PREFIX."cotisation SET fk_bank=".$insertid;
$sql.=" WHERE rowid=".$crowid;
- dol_syslog("card_subscriptions::cotisation sql=".$sql);
+ dol_syslog("card_subscriptions::cotisation", LOG_DEBUG);
$resql = $db->query($sql);
if (! $resql)
{
diff --git a/htdocs/adherents/cartes/carte.php b/htdocs/adherents/cartes/carte.php
index dbccbdb4f01..ade8f059810 100644
--- a/htdocs/adherents/cartes/carte.php
+++ b/htdocs/adherents/cartes/carte.php
@@ -72,7 +72,7 @@ if ((! empty($foruserid) || ! empty($foruserlogin) || ! empty($mode)) && ! $mesg
if ($foruserlogin) $sql.=" AND d.login='".$db->escape($foruserlogin)."'";
$sql.= " ORDER BY d.rowid ASC";
- dol_syslog("Search members sql=".$sql);
+ dol_syslog("Search members", LOG_DEBUG);
$result = $db->query($sql);
if ($result)
{
diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php
index 77cbff2918a..7dcb131b7df 100644
--- a/htdocs/adherents/class/adherent.class.php
+++ b/htdocs/adherents/class/adherent.class.php
@@ -310,7 +310,7 @@ class Adherent extends CommonObject
$sql.= ", ".(! empty($this->import_key) ? "'".$this->import_key."'":"null");
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -335,7 +335,7 @@ class Adherent extends CommonObject
$sql = "UPDATE ".MAIN_DB_PREFIX."user SET";
$sql.= " fk_member = '".$this->id."'";
$sql.= " WHERE rowid = ".$this->user_id;
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -455,7 +455,7 @@ class Adherent extends CommonObject
$sql.= ", fk_user_mod=".($user->id>0?$user->id:'null'); // Can be null because member can be create by a guest
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::update update member sql=".$sql);
+ dol_syslog(get_class($this)."::update update member", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -501,14 +501,14 @@ class Adherent extends CommonObject
{
dol_syslog(get_class($this)."::update update link to user");
$sql = "UPDATE ".MAIN_DB_PREFIX."user SET fk_member = NULL WHERE fk_member = ".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $this->error=$this->db->error(); $this->db->rollback(); return -5; }
// If there is a user linked to this member
if ($this->user_id > 0)
{
$sql = "UPDATE ".MAIN_DB_PREFIX."user SET fk_member = ".$this->id." WHERE rowid = ".$this->user_id;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $this->error=$this->db->error(); $this->db->rollback(); return -5; }
}
@@ -650,7 +650,7 @@ class Adherent extends CommonObject
$sql.= " WHERE fk_adherent='".$this->id."'";
$sql.= " ORDER by dateadh DESC"; // Sort by start subscription date
- dol_syslog(get_class($this)."::update_end_date sql=".$sql);
+ dol_syslog(get_class($this)."::update_end_date", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -663,7 +663,7 @@ class Adherent extends CommonObject
$sql.= " datefin=".($datefin != '' ? "'".$this->db->idate($datefin)."'" : "null");
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::update_end_date sql=".$sql);
+ dol_syslog(get_class($this)."::update_end_date", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -711,7 +711,7 @@ class Adherent extends CommonObject
// Remove category
$sql = "DELETE FROM ".MAIN_DB_PREFIX."categorie_member WHERE fk_member = ".$rowid;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -726,7 +726,7 @@ class Adherent extends CommonObject
if (! $error)
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."cotisation WHERE fk_adherent = ".$rowid;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -769,7 +769,7 @@ class Adherent extends CommonObject
if (! $error)
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."adherent WHERE rowid = ".$rowid;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -846,7 +846,7 @@ class Adherent extends CommonObject
$sql.= " WHERE rowid = ".$this->id;
//dol_syslog("Adherent::Password sql=hidden");
- dol_syslog(get_class($this)."::setPassword sql=".$sql);
+ dol_syslog(get_class($this)."::setPassword", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -922,7 +922,7 @@ class Adherent extends CommonObject
// If user is linked to this member, remove old link to this member
$sql = "UPDATE ".MAIN_DB_PREFIX."user SET fk_member = NULL WHERE fk_member = ".$this->id;
- dol_syslog(get_class($this)."::setUserId sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::setUserId", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $this->error=$this->db->error(); $this->db->rollback(); return -1; }
@@ -931,7 +931,7 @@ class Adherent extends CommonObject
{
$sql = "UPDATE ".MAIN_DB_PREFIX."user SET fk_member = ".$this->id;
$sql.= " WHERE rowid = ".$userid;
- dol_syslog(get_class($this)."::setUserId sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::setUserId", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $this->error=$this->db->error(); $this->db->rollback(); return -2; }
}
@@ -960,7 +960,7 @@ class Adherent extends CommonObject
$sql = "UPDATE ".MAIN_DB_PREFIX."adherent SET fk_soc = null";
$sql.= " WHERE fk_soc = '".$thirdpartyid."'";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::setThirdPartyId sql=".$sql);
+ dol_syslog(get_class($this)."::setThirdPartyId", LOG_DEBUG);
$resql = $this->db->query($sql);
}
@@ -968,7 +968,7 @@ class Adherent extends CommonObject
$sql = "UPDATE ".MAIN_DB_PREFIX."adherent SET fk_soc = ".($thirdpartyid>0 ? $thirdpartyid : 'null');
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::setThirdPartyId sql=".$sql);
+ dol_syslog(get_class($this)."::setThirdPartyId", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1088,7 +1088,7 @@ class Adherent extends CommonObject
$sql.= " AND d.ref_ext='".$this->db->escape($ref_ext)."'";
}
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1198,7 +1198,7 @@ class Adherent extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."cotisation as c";
$sql.= " WHERE c.fk_adherent = ".$this->id;
$sql.= " ORDER BY c.dateadh";
- dol_syslog(get_class($this)."::fetch_subscriptions sql=".$sql);
+ dol_syslog(get_class($this)."::fetch_subscriptions", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
@@ -1356,7 +1356,7 @@ class Adherent extends CommonObject
$sql.= ", fk_user_valid=".$user->id;
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::validate sql=".$sql);
+ dol_syslog(get_class($this)."::validate", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -1902,7 +1902,7 @@ class Adherent extends CommonObject
$sql.= ' FROM '.MAIN_DB_PREFIX.'adherent as a';
$sql.= ' WHERE a.rowid = '.$id;
- dol_syslog(get_class($this)."::info sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::info", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
diff --git a/htdocs/adherents/class/adherent_type.class.php b/htdocs/adherents/class/adherent_type.class.php
index e861af709b8..78e046978e9 100644
--- a/htdocs/adherents/class/adherent_type.class.php
+++ b/htdocs/adherents/class/adherent_type.class.php
@@ -76,7 +76,7 @@ class AdherentType extends CommonObject
$sql.= ", ".$conf->entity;
$sql.= ")";
- dol_syslog("Adherent_type::create sql=".$sql);
+ dol_syslog("Adherent_type::create", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -188,7 +188,7 @@ class AdherentType extends CommonObject
$sql .= " FROM ".MAIN_DB_PREFIX."adherent_type as d";
$sql .= " WHERE d.rowid = ".$rowid;
- dol_syslog("Adherent_type::fetch sql=".$sql);
+ dol_syslog("Adherent_type::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
diff --git a/htdocs/adherents/class/cotisation.class.php b/htdocs/adherents/class/cotisation.class.php
index 1fc0994b54a..712205c3a0d 100644
--- a/htdocs/adherents/class/cotisation.class.php
+++ b/htdocs/adherents/class/cotisation.class.php
@@ -82,7 +82,7 @@ class Cotisation extends CommonObject
$sql.= " '".$this->db->idate($this->datef)."',";
$sql.= " ".$this->amount.",'".$this->db->escape($this->note)."')";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -113,7 +113,7 @@ class Cotisation extends CommonObject
$sql.=" FROM ".MAIN_DB_PREFIX."cotisation";
$sql.=" WHERE rowid=".$rowid;
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -168,7 +168,7 @@ class Cotisation extends CommonObject
$sql .= " fk_bank = ".($this->fk_bank ? $this->fk_bank : 'null');
$sql .= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -207,7 +207,7 @@ class Cotisation extends CommonObject
$this->db->begin();
$sql = "DELETE FROM ".MAIN_DB_PREFIX."cotisation WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/adherents/index.php b/htdocs/adherents/index.php
index e64466ce9a6..0aaafa461fb 100644
--- a/htdocs/adherents/index.php
+++ b/htdocs/adherents/index.php
@@ -68,7 +68,7 @@ $sql.= " AND d.entity IN (".getEntity().")";
$sql.= " WHERE t.entity IN (".getEntity().")";
$sql.= " GROUP BY t.rowid, t.libelle, t.cotisation, d.statut";
-dol_syslog("index.php::select nb of members by type sql=".$sql, LOG_DEBUG);
+dol_syslog("index.php::select nb of members by type", LOG_DEBUG);
$result = $db->query($sql);
if ($result)
{
@@ -106,7 +106,7 @@ $sql.= " AND d.statut = 1 AND d.datefin >= '".$db->idate($now)."'";
$sql.= " AND t.rowid = d.fk_adherent_type";
$sql.= " GROUP BY d.fk_adherent_type";
-dol_syslog("index.php::select nb of uptodate members by type sql=".$sql, LOG_DEBUG);
+dol_syslog("index.php::select nb of uptodate members by type", LOG_DEBUG);
$result = $db->query($sql);
if ($result)
{
diff --git a/htdocs/adherents/liste.php b/htdocs/adherents/liste.php
index a5fbe1dc5c9..c1dfb9d2302 100644
--- a/htdocs/adherents/liste.php
+++ b/htdocs/adherents/liste.php
@@ -158,7 +158,7 @@ if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
$sql.= $db->order($sortfield,$sortorder);
$sql.= $db->plimit($conf->liste_limit+1, $offset);
-dol_syslog("get list sql=".$sql);
+dol_syslog("get list", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
diff --git a/htdocs/adherents/stats/byproperties.php b/htdocs/adherents/stats/byproperties.php
index e8355cbb941..fdb9153ba88 100644
--- a/htdocs/adherents/stats/byproperties.php
+++ b/htdocs/adherents/stats/byproperties.php
@@ -74,7 +74,7 @@ $sql.=" GROUP BY d.morphy";
$foundphy=$foundmor=0;
// Define $data array
-dol_syslog("Count member sql=".$sql);
+dol_syslog("Count member", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/adherents/stats/geo.php b/htdocs/adherents/stats/geo.php
index 1cb98f353b6..ecf27f78465 100644
--- a/htdocs/adherents/stats/geo.php
+++ b/htdocs/adherents/stats/geo.php
@@ -138,7 +138,7 @@ if ($mode)
//print $langsen->trans("Country"."FI");exit;
// Define $data array
- dol_syslog("Count member sql=".$sql);
+ dol_syslog("Count member", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/admin/barcode.php b/htdocs/admin/barcode.php
index 988b49efd07..78c99916910 100644
--- a/htdocs/admin/barcode.php
+++ b/htdocs/admin/barcode.php
@@ -203,7 +203,7 @@ $sql.= " FROM ".MAIN_DB_PREFIX."c_barcode_type";
$sql.= " WHERE entity = ".$conf->entity;
$sql.= " ORDER BY code";
-dol_syslog("admin/barcode.php sql=".$sql);
+dol_syslog("admin/barcode.php", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/admin/boxes.php b/htdocs/admin/boxes.php
index d58a1576a31..bc140735c61 100644
--- a/htdocs/admin/boxes.php
+++ b/htdocs/admin/boxes.php
@@ -66,7 +66,7 @@ if ($action == 'add')
$sql.= " WHERE param = 'MAIN_BOXES_".$db->escape(GETPOST("pos","alpha"))."' AND value = '1'";
$sql.= " AND entity = ".$conf->entity;
$resql = $db->query($sql);
- dol_syslog("boxes.php search fk_user to activate box for sql=".$sql);
+ dol_syslog("boxes.php search fk_user to activate box for", LOG_DEBUG);
if ($resql)
{
$num = $db->num_rows($resql);
@@ -93,7 +93,7 @@ if ($action == 'add')
{
$nbboxonleft=$nbboxonright=0;
$sql = "SELECT box_order FROM ".MAIN_DB_PREFIX."boxes WHERE position = ".GETPOST("pos","alpha")." AND fk_user = ".$fk_user." AND entity = ".$conf->entity;
- dol_syslog("boxes.php activate box sql=".$sql);
+ dol_syslog("boxes.php activate box", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
@@ -112,7 +112,7 @@ if ($action == 'add')
$sql.= GETPOST("boxid","int").", ".GETPOST("pos","alpha").", '".(($nbboxonleft > $nbboxonright) ? 'B01' : 'A01')."', ".$fk_user.", ".$conf->entity;
$sql.= ")";
- dol_syslog("boxes.php activate box sql=".$sql);
+ dol_syslog("boxes.php activate box", LOG_DEBUG);
$resql = $db->query($sql);
if (! $resql)
{
@@ -235,7 +235,7 @@ $sql.= " AND b.box_id = bd.rowid";
$sql.= " AND b.fk_user=0";
$sql.= " ORDER by b.position, b.box_order";
-dol_syslog("Search available boxes sql=".$sql, LOG_DEBUG);
+dol_syslog("Search available boxes", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
@@ -271,7 +271,7 @@ if ($resql)
$sql.= " WHERE entity = ".$conf->entity;
$sql.= " AND LENGTH(box_order) <= 2";
- dol_syslog("Execute requests to renumber box order sql=".$sql);
+ dol_syslog("Execute requests to renumber box order", LOG_DEBUG);
$result = $db->query($sql);
if ($result)
{
diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php
index eb9cae41917..48e637fb8a3 100644
--- a/htdocs/admin/const.php
+++ b/htdocs/admin/const.php
@@ -233,7 +233,7 @@ if (empty($user->entity) && $debug) {} // to force for superadmin
elseif ($user->entity || empty($conf->multicompany->enabled)) $sql.= " AND visible = 1";
$sql.= " ORDER BY entity, name ASC";
-dol_syslog("Const::listConstant sql=".$sql);
+dol_syslog("Const::listConstant", LOG_DEBUG);
$result = $db->query($sql);
if ($result)
{
diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php
index d834929d00f..6120e94f4ac 100644
--- a/htdocs/admin/dict.php
+++ b/htdocs/admin/dict.php
@@ -528,7 +528,7 @@ if (GETPOST('actionadd') || GETPOST('actionmodify'))
}
$sql.=",1)";
- dol_syslog("actionadd sql=".$sql);
+ dol_syslog("actionadd", LOG_DEBUG);
$result = $db->query($sql);
if ($result) // Add is ok
{
@@ -576,7 +576,7 @@ if (GETPOST('actionadd') || GETPOST('actionmodify'))
}
$sql.= " WHERE ".$rowidcol." = '".$rowid."'";
- dol_syslog("actionmodify sql=".$sql);
+ dol_syslog("actionmodify", LOG_DEBUG);
//print $sql;
$resql = $db->query($sql);
if (! $resql)
@@ -599,7 +599,7 @@ if ($action == 'confirm_delete' && $confirm == 'yes') // delete
$sql = "DELETE from ".$tabname[$id]." WHERE ".$rowidcol."='".$rowid."'";
- dol_syslog("delete sql=".$sql);
+ dol_syslog("delete", LOG_DEBUG);
$result = $db->query($sql);
if (! $result)
{
@@ -826,7 +826,7 @@ if ($id)
print '';
// List of available values in database
- dol_syslog("htdocs/admin/dict sql=".$sql, LOG_DEBUG);
+ dol_syslog("htdocs/admin/dict", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/admin/external_rss.php b/htdocs/admin/external_rss.php
index 0b9534689d0..1944521a581 100644
--- a/htdocs/admin/external_rss.php
+++ b/htdocs/admin/external_rss.php
@@ -229,7 +229,7 @@ $sql ="SELECT rowid, file, note FROM ".MAIN_DB_PREFIX."boxes_def";
$sql.=" WHERE file = 'box_external_rss.php'";
$sql.=" ORDER BY note";
-dol_syslog("select rss boxes sql=".$sql,LOG_DEBUG);
+dol_syslog("select rss boxes", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/admin/tools/listevents.php b/htdocs/admin/tools/listevents.php
index 10bd42d9590..c2671f698a4 100644
--- a/htdocs/admin/tools/listevents.php
+++ b/htdocs/admin/tools/listevents.php
@@ -78,7 +78,7 @@ if ($action == 'confirm_purge' && $confirm == 'yes' && $user->admin)
$sql = "DELETE FROM ".MAIN_DB_PREFIX."events";
$sql.= " WHERE entity = ".$conf->entity;
- dol_syslog("listevents purge sql=".$sql);
+ dol_syslog("listevents purge", LOG_DEBUG);
$resql = $db->query($sql);
if (! $resql)
{
diff --git a/htdocs/barcode/codeinit.php b/htdocs/barcode/codeinit.php
index d6ca6a7d66f..a5d207b5339 100644
--- a/htdocs/barcode/codeinit.php
+++ b/htdocs/barcode/codeinit.php
@@ -126,7 +126,7 @@ if ($action == 'initbarcodeproducts')
$sql.=$db->order("datec","ASC");
$sql.=$db->plimit($maxperinit);
- dol_syslog("codeinit sql=".$sql, LOG_DEBUG);
+ dol_syslog("codeinit", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/bookmarks/class/bookmark.class.php b/htdocs/bookmarks/class/bookmark.class.php
index 2aa86c5db20..aa92d2bedb9 100644
--- a/htdocs/bookmarks/class/bookmark.class.php
+++ b/htdocs/bookmarks/class/bookmark.class.php
@@ -65,7 +65,7 @@ class Bookmark
$sql.= " WHERE rowid = ".$id;
$sql.= " AND entity = ".$conf->entity;
- dol_syslog("Bookmark::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog("Bookmark::fetch", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -123,7 +123,7 @@ class Bookmark
if ($this->fk_soc) $sql.=",".$this->fk_soc;
$sql.= ")";
- dol_syslog("Bookmark::update sql=".$sql, LOG_DEBUG);
+ dol_syslog("Bookmark::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -173,7 +173,7 @@ class Bookmark
$sql.= " ,position = '".$this->position."'";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog("Bookmark::update sql=".$sql, LOG_DEBUG);
+ dol_syslog("Bookmark::update", LOG_DEBUG);
if ($this->db->query($sql))
{
return 1;
@@ -196,7 +196,7 @@ class Bookmark
$sql = "DELETE FROM ".MAIN_DB_PREFIX."bookmark";
$sql .= " WHERE rowid = ".$id;
- dol_syslog("Bookmark::remove sql=".$sql, LOG_DEBUG);
+ dol_syslog("Bookmark::remove", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/cashdesk/class/Facturation.class.php b/htdocs/cashdesk/class/Facturation.class.php
index b2bb87a0bb2..296ced0f172 100644
--- a/htdocs/cashdesk/class/Facturation.class.php
+++ b/htdocs/cashdesk/class/Facturation.class.php
@@ -103,7 +103,7 @@ class Facturation
$sql.= " FROM ".MAIN_DB_PREFIX."c_tva";
$sql.= " WHERE rowid = ".$this->tva();
- dol_syslog("ajoutArticle sql=".$sql);
+ dol_syslog("ajoutArticle", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
diff --git a/htdocs/cashdesk/facturation.php b/htdocs/cashdesk/facturation.php
index 4d442c0dbd3..2f3da75d977 100644
--- a/htdocs/cashdesk/facturation.php
+++ b/htdocs/cashdesk/facturation.php
@@ -65,7 +65,7 @@ if ( GETPOST('filtre') ) {
else $sql.= ")";
$sql.= " ORDER BY label";
- dol_syslog("facturation.php sql=".$sql);
+ dol_syslog("facturation.php", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/cashdesk/facturation_dhtml.php b/htdocs/cashdesk/facturation_dhtml.php
index 88a22f7865a..e481fcbecf6 100644
--- a/htdocs/cashdesk/facturation_dhtml.php
+++ b/htdocs/cashdesk/facturation_dhtml.php
@@ -62,7 +62,7 @@ if (dol_strlen($_GET["code"]) >= 0) // If search criteria is on char length at l
}
$sql.= " ORDER BY label";
- dol_syslog("facturation_dhtml.php sql=".$sql);
+ dol_syslog("facturation_dhtml.php", LOG_DEBUG);
$result = $db->query($sql);
if ($result)
diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php
index 8d2c4ceed46..2d657dc6e1c 100644
--- a/htdocs/categories/class/categorie.class.php
+++ b/htdocs/categories/class/categorie.class.php
@@ -87,7 +87,7 @@ class Categorie extends CommonObject
if ($label) $sql.= " WHERE label = '".$this->db->escape($label)."' AND entity=".$conf->entity;;
}
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -278,7 +278,7 @@ class Categorie extends CommonObject
$sql .= ", fk_parent = ".$this->fk_parent;
$sql .= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
if ($this->db->query($sql))
{
@@ -488,7 +488,7 @@ class Categorie extends CommonObject
$sql = 'SELECT fk_parent FROM '.MAIN_DB_PREFIX.'categorie';
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::add_type sql=".$sql);
+ dol_syslog(get_class($this)."::add_type", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -626,7 +626,7 @@ class Categorie extends CommonObject
$sql.= " AND c.fk_categorie = ".$this->id;
$sql.= " AND c.fk_".$field." = o.rowid";
- dol_syslog(get_class($this)."::getObjectsInCateg sql=".$sql);
+ dol_syslog(get_class($this)."::getObjectsInCateg", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -679,7 +679,7 @@ class Categorie extends CommonObject
}
$sql = "SELECT COUNT(*) as nb FROM " . MAIN_DB_PREFIX . "categorie_" . $category_table;
$sql .= " WHERE fk_categorie = " . $this->id . " AND fk_" . $field . " = " . $object_id;
- dol_syslog(get_class($this)."::containsObject sql=".$sql);
+ dol_syslog(get_class($this)."::containsObject", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql) {
return $this->db->fetch_object($resql)->nb;
@@ -737,7 +737,7 @@ class Categorie extends CommonObject
$sql.= " WHERE fk_parent != 0";
$sql.= " AND entity IN (".getEntity('category',1).")";
- dol_syslog(get_class($this)."::load_motherof sql=".$sql);
+ dol_syslog(get_class($this)."::load_motherof", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -788,7 +788,7 @@ class Categorie extends CommonObject
$sql.= " WHERE c.entity IN (".getEntity('category',1).")";
$sql.= " AND c.type = ".$type;
- dol_syslog(get_class($this)."::get_full_arbo get category list sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::get_full_arbo get category list", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -982,7 +982,7 @@ class Categorie extends CommonObject
$sql.= " AND c.fk_parent = ".$this->fk_parent;
$sql.= " AND c.label = '".$this->db->escape($this->label)."'";
- dol_syslog(get_class($this)."::already_exists sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::already_exists", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php
index ee9e4c032ee..03d3f7b8025 100644
--- a/htdocs/comm/action/class/actioncomm.class.php
+++ b/htdocs/comm/action/class/actioncomm.class.php
@@ -202,7 +202,7 @@ class ActionComm extends CommonObject
$sql.= $conf->entity;
$sql.= ")";
- dol_syslog(get_class($this)."::add sql=".$sql);
+ dol_syslog(get_class($this)."::add", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -292,7 +292,7 @@ class ActionComm extends CommonObject
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s on s.rowid = a.fk_soc";
$sql.= " WHERE a.id=".$id." AND a.fk_action=c.id";
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -369,7 +369,7 @@ class ActionComm extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."actioncomm";
$sql.= " WHERE id=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$res=$this->db->query($sql);
if ($res < 0) {
$this->error=$this->db->lasterror();
@@ -477,7 +477,7 @@ class ActionComm extends CommonObject
$sql.= ", fk_user_done=".($this->userdone->id > 0 ? "'".$this->userdone->id."'":"null");
$sql.= " WHERE id=".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
if ($this->db->query($sql))
{
@@ -558,7 +558,7 @@ class ActionComm extends CommonObject
}
if (! empty($filter)) $sql.= $filter;
- dol_syslog(get_class()."::getActions sql=".$sql);
+ dol_syslog(get_class()."::getActions", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -644,7 +644,7 @@ class ActionComm extends CommonObject
$sql.= ' FROM '.MAIN_DB_PREFIX.'actioncomm as a';
$sql.= ' WHERE a.id = '.$id;
- dol_syslog(get_class($this)."::info sql=".$sql);
+ dol_syslog(get_class($this)."::info", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -930,7 +930,7 @@ class ActionComm extends CommonObject
$sql.= " ORDER by datep";
//print $sql;exit;
- dol_syslog(get_class($this)."::build_exportfile select events sql=".$sql);
+ dol_syslog(get_class($this)."::build_exportfile select events", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/comm/action/class/cactioncomm.class.php b/htdocs/comm/action/class/cactioncomm.class.php
index 68960c5a6c0..8908b4e2a46 100644
--- a/htdocs/comm/action/class/cactioncomm.class.php
+++ b/htdocs/comm/action/class/cactioncomm.class.php
@@ -64,7 +64,7 @@ class CActionComm
if (is_numeric($id)) $sql.= " WHERE id=".$id;
else $sql.= " WHERE code='".$id."'";
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -117,7 +117,7 @@ class CActionComm
if (! empty($excludetype)) $sql.=($active != ''?" AND":" WHERE")." type <> '".$excludetype."'";
$sql.= " ORDER BY module, position";
- dol_syslog(get_class($this)."::liste_array sql=".$sql);
+ dol_syslog(get_class($this)."::liste_array", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php
index 92b87d94ad1..2c3791c4c1b 100644
--- a/htdocs/comm/action/index.php
+++ b/htdocs/comm/action/index.php
@@ -361,7 +361,7 @@ if ($filtera > 0 || $filtert > 0 || $filterd > 0)
$sql.= ' ORDER BY datep';
//print $sql;
-dol_syslog("comm/action/index.php sql=".$sql, LOG_DEBUG);
+dol_syslog("comm/action/index.php", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -472,7 +472,7 @@ if ($showbirthday)
}
$sql.= ' ORDER BY birthday';
- dol_syslog("comm/action/index.php sql=".$sql, LOG_DEBUG);
+ dol_syslog("comm/action/index.php", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/comm/action/listactions.php b/htdocs/comm/action/listactions.php
index e6944f4c829..56a9efa5589 100644
--- a/htdocs/comm/action/listactions.php
+++ b/htdocs/comm/action/listactions.php
@@ -183,7 +183,7 @@ $sql.= $db->order($sortfield,$sortorder);
$sql.= $db->plimit($limit + 1, $offset);
//print $sql;
-dol_syslog("comm/action/listactions.php sql=".$sql);
+dol_syslog("comm/action/listactions.php", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/comm/action/rapport/index.php b/htdocs/comm/action/rapport/index.php
index 78f1ca24827..f34678787fa 100644
--- a/htdocs/comm/action/rapport/index.php
+++ b/htdocs/comm/action/rapport/index.php
@@ -89,7 +89,7 @@ $sql.= " ORDER BY year DESC, month DESC, df DESC";
$sql.= $db->plimit($limit+1,$offset);
//print $sql;
-dol_syslog("select sql=".$sql);
+dol_syslog("select", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/comm/mailing/class/mailing.class.php b/htdocs/comm/mailing/class/mailing.class.php
index 99b1a2f4419..2cb298bff3f 100644
--- a/htdocs/comm/mailing/class/mailing.class.php
+++ b/htdocs/comm/mailing/class/mailing.class.php
@@ -109,7 +109,7 @@ class Mailing extends CommonObject
$this->titre = $langs->trans("NoTitle");
}
- dol_syslog("Mailing::Create sql=".$sql);
+ dol_syslog("Mailing::Create", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -157,7 +157,7 @@ class Mailing extends CommonObject
$sql .= ", bgimage = '".($this->bgimage?$this->bgimage:null)."'";
$sql .= " WHERE rowid = ".$this->id;
- dol_syslog("Mailing::Update sql=".$sql);
+ dol_syslog("Mailing::Update", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -192,7 +192,7 @@ class Mailing extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."mailing as m";
$sql.= " WHERE m.rowid = ".$rowid;
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -325,7 +325,7 @@ class Mailing extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."mailing_cibles ";
$sql.= " WHERE fk_mailing = ".$fromid;
- dol_syslog(get_class($this)."::createFromClone sql=".$sql);
+ dol_syslog(get_class($this)."::createFromClone", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -384,7 +384,7 @@ class Mailing extends CommonObject
$sql .= " SET statut = 1, date_valid = '".$this->db->idate($now)."', fk_user_valid=".$user->id;
$sql .= " WHERE rowid = ".$this->id;
- dol_syslog("Mailing::valid sql=".$sql, LOG_DEBUG);
+ dol_syslog("Mailing::valid", LOG_DEBUG);
if ($this->db->query($sql))
{
return 1;
@@ -409,7 +409,7 @@ class Mailing extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."mailing";
$sql.= " WHERE rowid = ".$rowid;
- dol_syslog("Mailing::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog("Mailing::delete", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -436,7 +436,7 @@ class Mailing extends CommonObject
$sql.= " SET statut = 0";
$sql.= " WHERE fk_mailing = ".$this->id;
- dol_syslog("Mailing::reset_targets_status sql=".$sql, LOG_DEBUG);
+ dol_syslog("Mailing::reset_targets_status", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/comm/mailing/fiche.php b/htdocs/comm/mailing/fiche.php
index d803de28357..b08eb746a09 100644
--- a/htdocs/comm/mailing/fiche.php
+++ b/htdocs/comm/mailing/fiche.php
@@ -173,7 +173,7 @@ if ($action == 'sendallconfirmed' && $confirm == 'yes')
$sql .= " FROM ".MAIN_DB_PREFIX."mailing_cibles as mc";
$sql .= " WHERE mc.statut < 1 AND mc.fk_mailing = ".$object->id;
- dol_syslog("fiche.php: select targets sql=".$sql, LOG_DEBUG);
+ dol_syslog("fiche.php: select targets", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -295,7 +295,7 @@ if ($action == 'sendallconfirmed' && $confirm == 'yes')
{
//Update status communication of thirdparty prospect
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=2 WHERE rowid IN (SELECT source_id FROM ".MAIN_DB_PREFIX."mailing_cibles WHERE rowid=".$obj->rowid.")";
- dol_syslog("fiche.php: set prospect thirdparty status sql=".$sql, LOG_DEBUG);
+ dol_syslog("fiche.php: set prospect thirdparty status", LOG_DEBUG);
$resql2=$db->query($sql);
if (! $resql2)
{
@@ -304,7 +304,7 @@ if ($action == 'sendallconfirmed' && $confirm == 'yes')
//Update status communication of contact prospect
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=2 WHERE rowid IN (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX."socpeople AS sc INNER JOIN ".MAIN_DB_PREFIX."mailing_cibles AS mc ON mc.rowid=".$obj->rowid." AND mc.source_type = 'contact' AND mc.source_id = sc.rowid)";
- dol_syslog("fiche.php: set prospect contact status sql=".$sql, LOG_DEBUG);
+ dol_syslog("fiche.php: set prospect contact status", LOG_DEBUG);
$resql2=$db->query($sql);
if (! $resql2)
@@ -363,7 +363,7 @@ if ($action == 'sendallconfirmed' && $confirm == 'yes')
}
$sql="UPDATE ".MAIN_DB_PREFIX."mailing SET statut=".$statut." WHERE rowid=".$object->id;
- dol_syslog("comm/mailing/fiche.php: update global status sql=".$sql, LOG_DEBUG);
+ dol_syslog("comm/mailing/fiche.php: update global status", LOG_DEBUG);
$resql2=$db->query($sql);
if (! $resql2)
{
diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php
index 070f0232215..5122bd15f51 100644
--- a/htdocs/comm/propal/class/propal.class.php
+++ b/htdocs/comm/propal/class/propal.class.php
@@ -749,7 +749,7 @@ class Propal extends CommonObject
$sql.= ", ".$conf->entity;
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -760,7 +760,7 @@ class Propal extends CommonObject
$this->ref='(PROV'.$this->id.')';
$sql = 'UPDATE '.MAIN_DB_PREFIX."propal SET ref='".$this->ref."' WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) $error++;
@@ -1075,7 +1075,7 @@ class Propal extends CommonObject
if ($ref) $sql.= " AND p.ref='".$ref."'";
else $sql.= " AND p.rowid=".$rowid;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1410,7 +1410,7 @@ class Propal extends CommonObject
$sql = "UPDATE ".MAIN_DB_PREFIX."propal SET datep = '".$this->db->idate($date)."'";
$sql.= " WHERE rowid = ".$this->id." AND fk_statut = 0";
- dol_syslog(get_class($this)."::set_date sql=".$sql);
+ dol_syslog(get_class($this)."::set_date", LOG_DEBUG);
if ($this->db->query($sql) )
{
$this->date = $date;
@@ -1667,7 +1667,7 @@ class Propal extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::reopen sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::reopen", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) {
$error++; $this->errors[]="Error ".$this->db->lasterror();
@@ -1993,7 +1993,7 @@ class Propal extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."facture";
$sql.= " WHERE rowid IN (".implode(',',$linkedInvoices).")";
- dol_syslog(get_class($this)."::InvoiceArrayList sql=".$sql);
+ dol_syslog(get_class($this)."::InvoiceArrayList", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
@@ -2974,7 +2974,7 @@ class PropaleLigne extends CommonObject
$this->db->begin();
$sql = "DELETE FROM ".MAIN_DB_PREFIX."propaldet WHERE rowid = ".$this->rowid;
- dol_syslog("PropaleLigne::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog("PropaleLigne::delete", LOG_DEBUG);
if ($this->db->query($sql) )
{
@@ -3085,7 +3085,7 @@ class PropaleLigne extends CommonObject
$sql.= " , date_end=".(! empty($this->date_end)?"'".$this->db->idate($this->date_end)."'":"null");
$sql.= " WHERE rowid = ".$this->rowid;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php
index e2b0f5506fb..5af12ef11bb 100644
--- a/htdocs/commande/class/commande.class.php
+++ b/htdocs/commande/class/commande.class.php
@@ -229,7 +229,7 @@ class Commande extends CommonOrder
$sql.= " fk_user_valid = ".$user->id;
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::valid() sql=".$sql);
+ dol_syslog(get_class($this)."::valid()", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -352,7 +352,7 @@ class Commande extends CommonOrder
$sql.= " SET fk_statut = 0";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::set_draft sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::set_draft", LOG_DEBUG);
if ($this->db->query($sql))
{
// If stock is decremented on validate order, we must reincrement it
@@ -424,7 +424,7 @@ class Commande extends CommonOrder
$sql.= ' SET fk_statut=1, facture=0';
$sql.= ' WHERE rowid = '.$this->id;
- dol_syslog(get_class($this)."::set_reopen sql=".$sql);
+ dol_syslog(get_class($this)."::set_reopen", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -535,7 +535,7 @@ class Commande extends CommonOrder
$sql.= " WHERE rowid = ".$this->id;
$sql.= " AND fk_statut = 1";
- dol_syslog(get_class($this)."::cancel sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::cancel", LOG_DEBUG);
if ($this->db->query($sql))
{
// If stock is decremented on validate order, we must reincrement it
@@ -672,7 +672,7 @@ class Commande extends CommonOrder
$sql.= ", ".$conf->entity;
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1327,7 +1327,7 @@ class Commande extends CommonOrder
if ($ref_ext) $sql.= " AND c.ref_ext='".$this->db->escape($ref_ext)."'";
if ($ref_int) $sql.= " AND c.ref_int='".$this->db->escape($ref_int)."'";
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -1511,7 +1511,7 @@ class Commande extends CommonOrder
if ($only_product) $sql .= ' AND p.fk_product_type = 0';
$sql .= ' ORDER BY l.rang';
- dol_syslog(get_class($this)."::fetch_lines sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch_lines", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -1638,7 +1638,7 @@ class Commande extends CommonOrder
$sql.= ' GROUP BY cd.rowid, cd.fk_product';
//print $sql;
- dol_syslog(get_class($this)."::loadExpeditions sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::loadExpeditions", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -1938,7 +1938,7 @@ class Commande extends CommonOrder
$sql.= " SET date_livraison = ".($date_livraison ? "'".$this->db->idate($date_livraison)."'" : 'null');
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::set_date_livraison sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::set_date_livraison", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -2206,7 +2206,7 @@ class Commande extends CommonOrder
$sql = 'UPDATE '.MAIN_DB_PREFIX.'commande SET facture = 1';
$sql.= ' WHERE rowid = '.$this->id.' AND fk_statut > 0';
- dol_syslog(get_class($this)."::classifyBilled sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::classifyBilled", LOG_DEBUG);
if ($this->db->query($sql))
{
// Appel des triggers
@@ -2445,7 +2445,7 @@ class Commande extends CommonOrder
{
// Delete order details
$sql = 'DELETE FROM '.MAIN_DB_PREFIX."commandedet WHERE fk_commande = ".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
if (! $this->db->query($sql) )
{
dol_syslog(get_class($this)."::delete error", LOG_ERR);
@@ -2454,7 +2454,7 @@ class Commande extends CommonOrder
// Delete order
$sql = 'DELETE FROM '.MAIN_DB_PREFIX."commande WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
if (! $this->db->query($sql) )
{
dol_syslog(get_class($this)."::delete error", LOG_ERR);
@@ -3156,7 +3156,7 @@ class OrderLine extends CommonOrderLine
$sql = 'DELETE FROM '.MAIN_DB_PREFIX."commandedet WHERE rowid='".$this->rowid."';";
- dol_syslog("OrderLine::delete sql=".$sql);
+ dol_syslog("OrderLine::delete", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -3269,7 +3269,7 @@ class OrderLine extends CommonOrderLine
$sql.= " ".(! empty($this->date_end)?"'".$this->db->idate($this->date_end)."'":"null");
$sql.= ')';
- dol_syslog(get_class($this)."::insert sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::insert", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -3379,7 +3379,7 @@ class OrderLine extends CommonOrderLine
if (! empty($this->rang)) $sql.= ", rang=".$this->rang;
$sql.= " WHERE rowid = ".$this->rowid;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php
index 27690ae7093..ecc1443d838 100644
--- a/htdocs/compta/bank/account.php
+++ b/htdocs/compta/bank/account.php
@@ -241,7 +241,7 @@ if ($id > 0 || ! empty($ref))
$sql.= " AND ba.entity = ".$conf->entity;
$sql.= $sql_rech;
- dol_syslog("account.php count transactions - sql=".$sql, LOG_DEBUG);
+ dol_syslog("account.php count transactions -", LOG_DEBUG);
$result=$db->query($sql);
if ($result)
{
@@ -485,7 +485,7 @@ if ($id > 0 || ! empty($ref))
$sql.= $db->order("b.datev, b.datec", "ASC"); // We add date of creation to have correct order when everything is done the same day
$sql.= $db->plimit($limitsql, 0);
- dol_syslog("account.php get transactions - sql=".$sql, LOG_DEBUG);
+ dol_syslog("account.php get transactions -", LOG_DEBUG);
$result = $db->query($sql);
if ($result)
{
diff --git a/htdocs/compta/bank/class/account.class.php b/htdocs/compta/bank/class/account.class.php
index 8bcabf7f17b..0179149e69f 100644
--- a/htdocs/compta/bank/class/account.class.php
+++ b/htdocs/compta/bank/class/account.class.php
@@ -146,7 +146,7 @@ class Account extends CommonObject
$sql.= ", '".$type."'";
$sql.= ")";
- dol_syslog(get_class($this)."::add_url_line sql=".$sql);
+ dol_syslog(get_class($this)."::add_url_line", LOG_DEBUG);
if ($this->db->query($sql))
{
$rowid = $this->db->last_insert_id(MAIN_DB_PREFIX."bank_url");
@@ -189,7 +189,7 @@ class Account extends CommonObject
}
$sql.= " ORDER BY type, label";
- dol_syslog(get_class($this)."::get_url sql=".$sql);
+ dol_syslog(get_class($this)."::get_url", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -302,7 +302,7 @@ class Account extends CommonObject
$sql.= ", ".($banque?"'".$this->db->escape($banque)."'":"null");
$sql.= ")";
- dol_syslog(get_class($this)."::addline sql=".$sql);
+ dol_syslog(get_class($this)."::addline", LOG_DEBUG);
if ($this->db->query($sql))
{
$rowid = $this->db->last_insert_id(MAIN_DB_PREFIX."bank");
@@ -404,7 +404,7 @@ class Account extends CommonObject
$sql.= ", ".$this->country_id;
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -513,7 +513,7 @@ class Account extends CommonObject
$sql.= " WHERE rowid = ".$this->id;
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::update sql=".$sql);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -617,7 +617,7 @@ class Account extends CommonObject
if ($id) $sql.= " AND ba.rowid = ".$id;
if ($ref) $sql.= " AND ba.ref = '".$this->db->escape($ref)."'";
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -691,7 +691,7 @@ class Account extends CommonObject
$sql.= " WHERE rowid = ".$this->rowid;
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result) {
return 1;
@@ -1091,7 +1091,7 @@ class AccountLine extends CommonObject
else if ($ref) $sql.= " AND b.rowid='".$this->db->escape($ref)."'";
else $sql.= " AND b.rowid=".$rowid;
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -1166,12 +1166,12 @@ class AccountLine extends CommonObject
}
$sql = "DELETE FROM ".MAIN_DB_PREFIX."bank_class WHERE lineid=".$this->rowid;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$result = $this->db->query($sql);
if (! $result) $nbko++;
$sql = "DELETE FROM ".MAIN_DB_PREFIX."bank WHERE rowid=".$this->rowid;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$result = $this->db->query($sql);
if (! $result) $nbko++;
@@ -1208,7 +1208,7 @@ class AccountLine extends CommonObject
$this->db->begin();
$sql = "DELETE FROM ".MAIN_DB_PREFIX."bank_url WHERE fk_bank=".$this->rowid;
- dol_syslog(get_class($this)."::delete_urls sql=".$sql);
+ dol_syslog(get_class($this)."::delete_urls", LOG_DEBUG);
$result = $this->db->query($sql);
if (! $result) $nbko++;
@@ -1242,7 +1242,7 @@ class AccountLine extends CommonObject
$sql.= " dateo='".$this->db->idate($this->dateo)."'";
$sql.= " WHERE rowid = ".$this->rowid;
- dol_syslog(get_class($this)."::update sql=".$sql);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1276,7 +1276,7 @@ class AccountLine extends CommonObject
$sql.= ", fk_user_rappro = ".$user->id;
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::update_conciliation sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update_conciliation", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1290,7 +1290,7 @@ class AccountLine extends CommonObject
$sql.= ", ".$cat;
$sql.= ")";
- dol_syslog(get_class($this)."::update_conciliation sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update_conciliation", LOG_DEBUG);
$resql = $this->db->query($sql);
// No error check. Can fail if category already affected
diff --git a/htdocs/compta/bank/class/bankcateg.class.php b/htdocs/compta/bank/class/bankcateg.class.php
index c4066bae655..1bcadc4eb1a 100644
--- a/htdocs/compta/bank/class/bankcateg.class.php
+++ b/htdocs/compta/bank/class/bankcateg.class.php
@@ -84,7 +84,7 @@ class BankCateg // extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -142,7 +142,7 @@ class BankCateg // extends CommonObject
$sql.= " WHERE t.rowid = ".$id;
$sql.= " AND t.entity = ".$conf->entity;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -192,7 +192,7 @@ class BankCateg // extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -249,7 +249,7 @@ class BankCateg // extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
diff --git a/htdocs/compta/bank/ligne.php b/htdocs/compta/bank/ligne.php
index fee53c412b8..1ebc99a344d 100644
--- a/htdocs/compta/bank/ligne.php
+++ b/htdocs/compta/bank/ligne.php
@@ -175,7 +175,7 @@ if ($user->rights->banque->consolidate && ($action == 'num_releve' || $action ==
else $sql.=", rappro = ".$rappro;
$sql.= " WHERE rowid = ".$rowid;
- dol_syslog("ligne.php sql=".$sql, LOG_DEBUG);
+ dol_syslog("ligne.php", LOG_DEBUG);
$result = $db->query($sql);
if ($result)
{
diff --git a/htdocs/compta/bank/releve.php b/htdocs/compta/bank/releve.php
index dba271e672b..172140c2c64 100644
--- a/htdocs/compta/bank/releve.php
+++ b/htdocs/compta/bank/releve.php
@@ -189,7 +189,7 @@ else
$sql.= " AND b.fk_account = ".$acct->id;
$sql.= " ORDER BY b.num_releve DESC";
- dol_syslog("htdocs/compta/bank/releve.php sql=".$sql);
+ dol_syslog("htdocs/compta/bank/releve.php", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
@@ -211,7 +211,7 @@ else
$sql.= " AND b.fk_account = ".$acct->id;
$sql.= " ORDER BY b.num_releve ASC";
- dol_syslog("htdocs/compta/bank/releve.php sql=".$sql);
+ dol_syslog("htdocs/compta/bank/releve.php", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
diff --git a/htdocs/compta/charges/index.php b/htdocs/compta/charges/index.php
index f38f7e72aa2..e4286157617 100644
--- a/htdocs/compta/charges/index.php
+++ b/htdocs/compta/charges/index.php
@@ -207,7 +207,7 @@ if ($conf->tax->enabled)
//$sql.= $db->plimit($limit+1,$offset);
//print $sql;
- dol_syslog("compta/charges/index.php: select payment sql=".$sql);
+ dol_syslog("compta/charges/index.php: select payment", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/compta/deplacement/class/deplacement.class.php b/htdocs/compta/deplacement/class/deplacement.class.php
index f47046e2bdd..d46585c300d 100644
--- a/htdocs/compta/deplacement/class/deplacement.class.php
+++ b/htdocs/compta/deplacement/class/deplacement.class.php
@@ -120,7 +120,7 @@ class Deplacement extends CommonObject
$sql.= ", ".($this->fk_soc > 0? $this->fk_soc : "null");
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -203,7 +203,7 @@ class Deplacement extends CommonObject
$sql .= " , fk_projet = ".($this->fk_project>0?$this->fk_project:0);
$sql .= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -230,7 +230,7 @@ class Deplacement extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."deplacement";
$sql.= " WHERE rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ( $result )
{
@@ -271,7 +271,7 @@ class Deplacement extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."deplacement WHERE rowid = ".$id;
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -381,7 +381,7 @@ class Deplacement extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."c_type_fees";
$sql.= " WHERE active = ".$active;
- dol_syslog(get_class($this)."::listOfTypes sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::listOfTypes", LOG_DEBUG);
$result = $this->db->query($sql);
if ( $result )
{
diff --git a/htdocs/compta/dons/class/don.class.php b/htdocs/compta/dons/class/don.class.php
index a37b0433c80..df99859e663 100644
--- a/htdocs/compta/dons/class/don.class.php
+++ b/htdocs/compta/dons/class/don.class.php
@@ -354,7 +354,7 @@ class Don extends CommonObject
$sql.= ", '".$this->db->escape($this->phone_mobile)."'";
$sql.= ")";
- dol_syslog("Don::create sql=".$sql, LOG_DEBUG);
+ dol_syslog("Don::create", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -414,7 +414,7 @@ class Don extends CommonObject
$sql .= ",fk_statut=".$this->statut;
$sql .= " WHERE rowid = $this->id";
- dol_syslog("Don::update sql=".$sql);
+ dol_syslog("Don::update", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -478,7 +478,7 @@ class Don extends CommonObject
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_paiement as cp ON cp.id = d.fk_paiement";
$sql.= " WHERE d.rowid = ".$rowid." AND d.entity = ".$conf->entity;
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/compta/facture/class/facture-rec.class.php b/htdocs/compta/facture/class/facture-rec.class.php
index 7147f51c613..f87e640d78e 100644
--- a/htdocs/compta/facture/class/facture-rec.class.php
+++ b/htdocs/compta/facture/class/facture-rec.class.php
@@ -216,7 +216,7 @@ class FactureRec extends Facture
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."element_element as el ON el.fk_target = f.rowid AND el.targettype = 'facture'";
$sql.= ' WHERE f.rowid='.$rowid;
- dol_syslog("FactureRec::Fetch rowid=".$rowid." sql=".$sql, LOG_DEBUG);
+ dol_syslog("FactureRec::Fetch rowid=".$rowid."", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -497,7 +497,7 @@ class FactureRec extends Facture
$sql.= ", ".$rang;
$sql.= ", ".$special_code.")";
- dol_syslog(get_class($this)."::addline sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::addline", LOG_DEBUG);
if ($this->db->query($sql))
{
$this->id=$facid;
diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php
index 81bf47715e6..48d6e4d34e8 100644
--- a/htdocs/compta/facture/class/facture.class.php
+++ b/htdocs/compta/facture/class/facture.class.php
@@ -263,7 +263,7 @@ class Facture extends CommonInvoice
$sql.= ",".$this->mode_reglement_id;
$sql.= ", '".$this->db->idate($datelim)."', '".$this->modelpdf."')";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -273,7 +273,7 @@ class Facture extends CommonInvoice
$this->ref='(PROV'.$this->id.')';
$sql = 'UPDATE '.MAIN_DB_PREFIX."facture SET facnumber='".$this->ref."' WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) $error++;
@@ -846,7 +846,7 @@ class Facture extends CommonInvoice
if ($ref_ext) $sql.= " AND f.ref_ext='".$this->db->escape($ref_ext)."'";
if ($ref_int) $sql.= " AND f.ref_int='".$this->db->escape($ref_int)."'";
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -1089,7 +1089,7 @@ class Facture extends CommonInvoice
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) {
$error++; $this->errors[]="Error ".$this->db->lasterror();
@@ -1311,7 +1311,7 @@ class Facture extends CommonInvoice
$sql.= ' SET fk_facture = NULL, fk_facture_line = NULL';
$sql.= ' WHERE fk_facture_line IN ('.join(',',$list_rowid_det).')';
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
if (! $this->db->query($sql))
{
$this->error=$this->db->error()." sql=".$sql;
@@ -1501,7 +1501,7 @@ class Facture extends CommonInvoice
if ($close_note) $sql.= ", close_note='".$this->db->escape($close_note)."'";
$sql.= ' WHERE rowid = '.$this->id;
- dol_syslog(get_class($this)."::set_paid sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::set_paid", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1557,7 +1557,7 @@ class Facture extends CommonInvoice
$sql.= ' SET paye=0, fk_statut=1, close_code=null, close_note=null';
$sql.= ' WHERE rowid = '.$this->id;
- dol_syslog(get_class($this)."::set_unpaid sql=".$sql);
+ dol_syslog(get_class($this)."::set_unpaid", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1767,7 +1767,7 @@ class Facture extends CommonInvoice
}
$sql.= ' WHERE rowid = '.$this->id;
- dol_syslog(get_class($this)."::validate sql=".$sql);
+ dol_syslog(get_class($this)."::validate", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -1907,7 +1907,7 @@ class Facture extends CommonInvoice
$sql.= " SET fk_statut = 0";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::set_draft sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::set_draft", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -2321,7 +2321,7 @@ class Facture extends CommonInvoice
$sql.= ' SET fk_facture_line = NULL';
$sql.= ' WHERE fk_facture_line = '.$rowid;
- dol_syslog(get_class($this)."::deleteline sql=".$sql);
+ dol_syslog(get_class($this)."::deleteline", LOG_DEBUG);
$result = $this->db->query($sql);
if (! $result)
{
@@ -2461,7 +2461,7 @@ class Facture extends CommonInvoice
$sql.= ' AND p.fk_paiement = t.id';
if ($filtertype) $sql.=" AND t.code='PRE'";
- dol_syslog(get_class($this)."::getListOfPayments sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::getListOfPayments", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -2857,7 +2857,7 @@ class Facture extends CommonInvoice
if ($socid > 0) $sql.=" AND f.fk_soc = ".$socid;
$sql.= " ORDER BY f.facnumber";
- dol_syslog(get_class($this)."::list_qualified_avoir_invoices sql=".$sql);
+ dol_syslog(get_class($this)."::list_qualified_avoir_invoices", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -2906,7 +2906,7 @@ class Facture extends CommonInvoice
$sql.= ' WHERE fk_facture = '.$this->id;
$sql.= ' AND traite = 0';
- dol_syslog(get_class($this)."::demande_prelevement sql=".$sql);
+ dol_syslog(get_class($this)."::demande_prelevement", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -2937,7 +2937,7 @@ class Facture extends CommonInvoice
$sql .= ",'".$bac->number."'";
$sql .= ",'".$bac->cle_rib."')";
- dol_syslog(get_class($this)."::demande_prelevement sql=".$sql);
+ dol_syslog(get_class($this)."::demande_prelevement", LOG_DEBUG);
if ($this->db->query($sql))
{
return 1;
@@ -3569,7 +3569,7 @@ class FactureLigne extends CommonInvoiceLine
$sql.= " ".price2num($this->total_localtax2);
$sql.= ')';
- dol_syslog(get_class($this)."::insert sql=".$sql);
+ dol_syslog(get_class($this)."::insert", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -3732,7 +3732,7 @@ class FactureLigne extends CommonInvoiceLine
if (! empty($this->rang)) $sql.= ", rang=".$this->rang;
$sql.= " WHERE rowid = ".$this->rowid;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -3783,7 +3783,7 @@ class FactureLigne extends CommonInvoiceLine
$this->db->begin();
$sql = "DELETE FROM ".MAIN_DB_PREFIX."facturedet WHERE rowid = ".$this->rowid;
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
if ($this->db->query($sql) )
{
// Appel des triggers
@@ -3831,7 +3831,7 @@ class FactureLigne extends CommonInvoiceLine
$sql.= ",total_ttc=".price2num($this->total_ttc)."";
$sql.= " WHERE rowid = ".$this->rowid;
- dol_syslog(get_class($this)."::update_total sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update_total", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
diff --git a/htdocs/compta/facture/class/paymentterm.class.php b/htdocs/compta/facture/class/paymentterm.class.php
index 62ebcbacdbd..b137c0da85c 100644
--- a/htdocs/compta/facture/class/paymentterm.class.php
+++ b/htdocs/compta/facture/class/paymentterm.class.php
@@ -119,7 +119,7 @@ class PaymentTerm // extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -185,7 +185,7 @@ class PaymentTerm // extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."c_payment_term as t";
$sql.= " WHERE t.rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -235,7 +235,7 @@ class PaymentTerm // extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."c_payment_term as t";
$sql.= " WHERE t.code = 'RECEP'";
- dol_syslog(get_class($this)."::getDefaultId sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::getDefaultId", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -301,7 +301,7 @@ class PaymentTerm // extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -357,7 +357,7 @@ class PaymentTerm // extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
diff --git a/htdocs/compta/localtax/class/localtax.class.php b/htdocs/compta/localtax/class/localtax.class.php
index b500a701254..5580cbe70a3 100644
--- a/htdocs/compta/localtax/class/localtax.class.php
+++ b/htdocs/compta/localtax/class/localtax.class.php
@@ -95,7 +95,7 @@ class Localtax extends CommonObject
$sql.= " '".$this->fk_user_modif."'";
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -152,7 +152,7 @@ class Localtax extends CommonObject
$sql.= " fk_user_modif='".$this->fk_user_modif."'";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -202,7 +202,7 @@ class Localtax extends CommonObject
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."bank as b ON t.fk_bank = b.rowid";
$sql.= " WHERE t.rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -253,7 +253,7 @@ class Localtax extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."localtax";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -488,7 +488,7 @@ class Localtax extends CommonObject
$sql.=", '".$user->id."', NULL";
$sql.= ")";
- dol_syslog(get_class($this)."::addPayment sql=".$sql);
+ dol_syslog(get_class($this)."::addPayment", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
diff --git a/htdocs/compta/paiement/cheque/class/remisecheque.class.php b/htdocs/compta/paiement/cheque/class/remisecheque.class.php
index 917c88e0743..e6f8963b3e9 100644
--- a/htdocs/compta/paiement/cheque/class/remisecheque.class.php
+++ b/htdocs/compta/paiement/cheque/class/remisecheque.class.php
@@ -73,7 +73,7 @@ class RemiseCheque extends CommonObject
if ($id) $sql.= " AND bc.rowid = ".$id;
if ($ref) $sql.= " AND bc.number = '".$this->db->escape($ref)."'";
- dol_syslog("RemiseCheque::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog("RemiseCheque::fetch", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -155,7 +155,7 @@ class RemiseCheque extends CommonObject
$sql.= ", ''";
$sql.= ")";
- dol_syslog("RemiseCheque::Create sql=".$sql, LOG_DEBUG);
+ dol_syslog("RemiseCheque::Create", LOG_DEBUG);
$resql = $this->db->query($sql);
if ( $resql )
{
@@ -172,7 +172,7 @@ class RemiseCheque extends CommonObject
$sql.= " SET number='(PROV".$this->id.")'";
$sql.= " WHERE rowid='".$this->id."';";
- dol_syslog("RemiseCheque::Create sql=".$sql, LOG_DEBUG);
+ dol_syslog("RemiseCheque::Create", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -192,7 +192,7 @@ class RemiseCheque extends CommonObject
$sql.= " AND b.fk_account='".$account_id."'";
if ($limit) $sql.= $this->db->plimit($limit);
- dol_syslog("RemiseCheque::Create sql=".$sql, LOG_DEBUG);
+ dol_syslog("RemiseCheque::Create", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -225,7 +225,7 @@ class RemiseCheque extends CommonObject
$sql.= " SET fk_bordereau = ".$this->id;
$sql.= " WHERE rowid = ".$lineid;
- dol_syslog("RemiseCheque::Create sql=".$sql, LOG_DEBUG);
+ dol_syslog("RemiseCheque::Create", LOG_DEBUG);
$resql = $this->db->query($sql);
if (!$resql)
{
@@ -351,7 +351,7 @@ class RemiseCheque extends CommonObject
$sql.= " AND entity = ".$conf->entity;
$sql.= " AND statut = 0";
- dol_syslog("RemiseCheque::Validate sql=".$sql, LOG_DEBUG);
+ dol_syslog("RemiseCheque::Validate", LOG_DEBUG);
$resql = $this->db->query($sql);
if ( $resql )
{
@@ -410,7 +410,7 @@ class RemiseCheque extends CommonObject
$sql.= " WHERE entity = ".$conf->entity;
$sql.= " AND number not like '(%'";
- dol_syslog("Remisecheque::getNextNumber sql=".$sql);
+ dol_syslog("Remisecheque::getNextNumber", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -510,7 +510,7 @@ class RemiseCheque extends CommonObject
$sql.= " AND bc.entity = ".$conf->entity;
$sql.= " ORDER BY b.dateo ASC, b.rowid ASC";
- dol_syslog("RemiseCheque::generatePdf sql=".$sql, LOG_DEBUG);
+ dol_syslog("RemiseCheque::generatePdf", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
diff --git a/htdocs/compta/paiement/class/paiement.class.php b/htdocs/compta/paiement/class/paiement.class.php
index 93f5f017c44..71c9dc44d81 100644
--- a/htdocs/compta/paiement/class/paiement.class.php
+++ b/htdocs/compta/paiement/class/paiement.class.php
@@ -81,7 +81,7 @@ class Paiement extends CommonObject
$sql.= ' WHERE p.fk_paiement = c.id';
$sql.= ' AND p.rowid = '.$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
@@ -161,7 +161,7 @@ class Paiement extends CommonObject
$sql = "INSERT INTO ".MAIN_DB_PREFIX."paiement (entity, datec, datep, amount, fk_paiement, num_paiement, note, fk_user_creat)";
$sql.= " VALUES (".$conf->entity.", '".$this->db->idate($now)."', '".$this->db->idate($this->datepaye)."', '".$totalamount."', ".$this->paiementid.", '".$this->num_paiement."', '".$this->db->escape($this->note)."', ".$user->id.")";
- dol_syslog(get_class($this)."::Create insert paiement sql=".$sql);
+ dol_syslog(get_class($this)."::Create insert paiement", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -581,7 +581,7 @@ class Paiement extends CommonObject
$sql.= " SET datep = '".$this->db->idate($date)."'";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::update_date sql=".$sql);
+ dol_syslog(get_class($this)."::update_date", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -613,7 +613,7 @@ class Paiement extends CommonObject
$sql.= " SET num_paiement = '".$this->db->escape($num)."'";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::update_num sql=".$sql);
+ dol_syslog(get_class($this)."::update_num", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
diff --git a/htdocs/compta/payment_sc/fiche.php b/htdocs/compta/payment_sc/fiche.php
index 3a010bcae37..5c6562b6fc0 100644
--- a/htdocs/compta/payment_sc/fiche.php
+++ b/htdocs/compta/payment_sc/fiche.php
@@ -211,7 +211,7 @@ $sql.= ' WHERE pf.fk_charge = f.rowid AND f.fk_type = pc.id';
$sql.= ' AND f.entity = '.$conf->entity;
$sql.= ' AND pf.rowid = '.$paiement->id;
-dol_syslog("compta/payment_sc/fiche.php sql=".$sql);
+dol_syslog("compta/payment_sc/fiche.php", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/compta/prelevement/class/bonprelevement.class.php b/htdocs/compta/prelevement/class/bonprelevement.class.php
index 6840fcf139d..3d224bbe274 100644
--- a/htdocs/compta/prelevement/class/bonprelevement.class.php
+++ b/htdocs/compta/prelevement/class/bonprelevement.class.php
@@ -279,7 +279,7 @@ class BonPrelevement extends CommonObject
$sql.= " WHERE p.rowid = ".$rowid;
$sql.= " AND p.entity = ".$conf->entity;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -779,7 +779,7 @@ class BonPrelevement extends CommonObject
//if ($banque) $sql.= " AND sr.code_banque = '".$conf->global->PRELEVEMENT_CODE_BANQUE."'";
//if ($agence) $sql.= " AND sr.code_guichet = '".$conf->global->PRELEVEMENT_CODE_GUICHET."'";
- dol_syslog(get_class($this)."::Create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::Create", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -896,7 +896,7 @@ class BonPrelevement extends CommonObject
$sql.= " WHERE ref LIKE '".$ref."%'";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::Create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::Create", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
@@ -922,7 +922,7 @@ class BonPrelevement extends CommonObject
$sql.= ", '".$this->db->idate($now)."'";
$sql.= ")";
- dol_syslog(get_class($this)."::Create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::Create", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
@@ -983,7 +983,7 @@ class BonPrelevement extends CommonObject
$sql.= ", fk_prelevement_bons = ".$prev_id;
$sql.= " WHERE rowid = ".$fac[1];
- dol_syslog(get_class($this)."::Create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::Create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -1040,7 +1040,7 @@ class BonPrelevement extends CommonObject
$sql.= " WHERE rowid = ".$prev_id;
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::Create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::Create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -1411,32 +1411,32 @@ class BonPrelevement extends CommonObject
fputs($this->file, ' '.$CrLf);
fputs($this->file, ''.$CrLf);
- $sql = "SELECT pl.amount";
- $sql.= " FROM";
- $sql.= " ".MAIN_DB_PREFIX."prelevement_lignes as pl,";
- $sql.= " ".MAIN_DB_PREFIX."facture as f,";
- $sql.= " ".MAIN_DB_PREFIX."prelevement_facture as pf";
- $sql.= " WHERE pl.fk_prelevement_bons = ".$this->id;
- $sql.= " AND pl.rowid = pf.fk_prelevement_lignes";
- $sql.= " AND pf.fk_facture = f.rowid";
-
- //Lines
- $i = 0;
- $resql=$this->db->query($sql);
- if ($resql)
- {
- $num = $this->db->num_rows($resql);
-
- while ($i < $num)
- {
- $obj = $this->db->fetch_object($resql);
- $this->total = $this->total + $obj->amount;
- $i++;
- }
- }
- else
- {
- $result = -2;
+ $sql = "SELECT pl.amount";
+ $sql.= " FROM";
+ $sql.= " ".MAIN_DB_PREFIX."prelevement_lignes as pl,";
+ $sql.= " ".MAIN_DB_PREFIX."facture as f,";
+ $sql.= " ".MAIN_DB_PREFIX."prelevement_facture as pf";
+ $sql.= " WHERE pl.fk_prelevement_bons = ".$this->id;
+ $sql.= " AND pl.rowid = pf.fk_prelevement_lignes";
+ $sql.= " AND pf.fk_facture = f.rowid";
+
+ //Lines
+ $i = 0;
+ $resql=$this->db->query($sql);
+ if ($resql)
+ {
+ $num = $this->db->num_rows($resql);
+
+ while ($i < $num)
+ {
+ $obj = $this->db->fetch_object($resql);
+ $this->total = $this->total + $obj->amount;
+ $i++;
+ }
+ }
+ else
+ {
+ $result = -2;
}
}
diff --git a/htdocs/compta/resultat/clientfourn.php b/htdocs/compta/resultat/clientfourn.php
index d68aa528122..5dcd09814ad 100644
--- a/htdocs/compta/resultat/clientfourn.php
+++ b/htdocs/compta/resultat/clientfourn.php
@@ -190,7 +190,7 @@ if ($socid) $sql.= " AND f.fk_soc = ".$socid;
$sql.= " GROUP BY s.nom, s.rowid";
$sql.= " ORDER BY s.nom, s.rowid";
-dol_syslog("get customer invoices sql=".$sql);
+dol_syslog("get customer invoices", LOG_DEBUG);
$result = $db->query($sql);
if ($result) {
$num = $db->num_rows($result);
@@ -235,7 +235,7 @@ if ($modecompta != 'CREANCES-DETTES')
$sql.= " GROUP BY nom, idp";
$sql.= " ORDER BY nom";
- dol_syslog("get old customer payments not linked to invoices sql=".$sql);
+ dol_syslog("get old customer payments not linked to invoices", LOG_DEBUG);
$result = $db->query($sql);
if ($result) {
$num = $db->num_rows($result);
@@ -320,7 +320,7 @@ print '
| '.$langs->trans("SuppliersInvoices").' |
';
$subtotal_ht = 0;
$subtotal_ttc = 0;
-dol_syslog("get suppliers invoices sql=".$sql);
+dol_syslog("get suppliers invoices", LOG_DEBUG);
$result = $db->query($sql);
if ($result) {
$num = $db->num_rows($result);
@@ -401,7 +401,7 @@ $sql.= " AND cs.entity = ".$conf->entity;
$sql.= " GROUP BY c.libelle, c.id";
$sql.= " ORDER BY c.libelle, c.id";
-dol_syslog("get social contributions deductible=0 sql=".$sql);
+dol_syslog("get social contributions deductible=0", LOG_DEBUG);
$result=$db->query($sql);
$subtotal_ht = 0;
$subtotal_ttc = 0;
@@ -478,7 +478,7 @@ else
$sql.= " ORDER BY c.libelle, c.id";
}
-dol_syslog("get social contributions deductible=1 sql=".$sql);
+dol_syslog("get social contributions deductible=1", LOG_DEBUG);
$result=$db->query($sql);
$subtotal_ht = 0;
$subtotal_ttc = 0;
@@ -564,7 +564,7 @@ if ($modecompta == 'CREANCES-DETTES')
$sql.= " GROUP BY dm";
$sql.= " ORDER BY dm";
- dol_syslog("get vat to pay sql=".$sql);
+ dol_syslog("get vat to pay", LOG_DEBUG);
$result=$db->query($sql);
if ($result)
{
@@ -609,7 +609,7 @@ if ($modecompta == 'CREANCES-DETTES')
$sql.= " GROUP BY dm";
$sql.= " ORDER BY dm";
- dol_syslog("get vat received back sql=".$sql);
+ dol_syslog("get vat received back", LOG_DEBUG);
$result=$db->query($sql);
if ($result)
{
@@ -653,7 +653,7 @@ else
$sql.= " GROUP BY dm";
$sql.= " ORDER BY dm";
- dol_syslog("get vat really paid sql=".$sql);
+ dol_syslog("get vat really paid", LOG_DEBUG);
$result=$db->query($sql);
if ($result) {
$num = $db->num_rows($result);
@@ -694,7 +694,7 @@ else
$sql.= " GROUP BY dm";
$sql.= " ORDER BY dm";
- dol_syslog("get vat really received back sql=".$sql);
+ dol_syslog("get vat really received back", LOG_DEBUG);
$result=$db->query($sql);
if ($result) {
$num = $db->num_rows($result);
diff --git a/htdocs/compta/resultat/index.php b/htdocs/compta/resultat/index.php
index b3a42d85a6b..c61c8b76e08 100644
--- a/htdocs/compta/resultat/index.php
+++ b/htdocs/compta/resultat/index.php
@@ -123,7 +123,7 @@ $sql.= " GROUP BY dm";
$sql.= " ORDER BY dm";
//print $sql;
-dol_syslog("get customers invoices sql=".$sql);
+dol_syslog("get customers invoices", LOG_DEBUG);
$result=$db->query($sql);
if ($result)
{
@@ -157,7 +157,7 @@ if ($modecompta != 'CREANCES-DETTES')
$sql.= " GROUP BY dm";
$sql.= " ORDER BY dm";
- dol_syslog("get old customers payments not linked to invoices sql=".$sql);
+ dol_syslog("get old customers payments not linked to invoices", LOG_DEBUG);
$result = $db->query($sql);
if ($result) {
$num = $db->num_rows($result);
@@ -208,7 +208,7 @@ $sql.= " AND f.entity = ".$conf->entity;
if ($socid) $sql.= " AND f.fk_soc = ".$socid;
$sql.= " GROUP BY dm";
-dol_syslog("get suppliers invoices sql=".$sql);
+dol_syslog("get suppliers invoices", LOG_DEBUG);
$result=$db->query($sql);
if ($result)
{
@@ -249,7 +249,7 @@ if ($modecompta == 'CREANCES-DETTES')
$sql.= " AND f.entity = ".$conf->entity;
$sql.= " GROUP BY dm";
- dol_syslog("get vat to pay sql=".$sql);
+ dol_syslog("get vat to pay", LOG_DEBUG);
$result=$db->query($sql);
if ($result) {
$num = $db->num_rows($result);
@@ -280,7 +280,7 @@ if ($modecompta == 'CREANCES-DETTES')
$sql.= " AND f.entity = ".$conf->entity;
$sql.= " GROUP BY dm";
- dol_syslog("get vat to receive back sql=".$sql);
+ dol_syslog("get vat to receive back", LOG_DEBUG);
$result=$db->query($sql);
if ($result) {
$num = $db->num_rows($result);
@@ -311,7 +311,7 @@ else {
$sql.= " AND t.entity = ".$conf->entity;
$sql.= " GROUP BY dm";
- dol_syslog("get vat really paid sql=".$sql);
+ dol_syslog("get vat really paid", LOG_DEBUG);
$result=$db->query($sql);
if ($result) {
$num = $db->num_rows($result);
@@ -340,7 +340,7 @@ else {
$sql.= " AND t.entity = ".$conf->entity;
$sql.= " GROUP BY dm";
- dol_syslog("get vat really received back sql=".$sql);
+ dol_syslog("get vat really received back", LOG_DEBUG);
$result=$db->query($sql);
if ($result) {
$num = $db->num_rows($result);
@@ -390,7 +390,7 @@ else
$sql.= " AND cs.entity = ".$conf->entity;
$sql.= " GROUP BY c.libelle, dm";
-dol_syslog("get social contributions deductible=0 sql=".$sql);
+dol_syslog("get social contributions deductible=0 ", LOG_DEBUG);
$result=$db->query($sql);
if ($result) {
$num = $db->num_rows($result);
@@ -440,7 +440,7 @@ else
$sql.= " AND cs.entity = ".$conf->entity;
$sql.= " GROUP BY c.libelle, dm";
-dol_syslog("get social contributions paid deductible=1 sql=".$sql);
+dol_syslog("get social contributions paid deductible=1", LOG_DEBUG);
$result=$db->query($sql);
if ($result) {
$num = $db->num_rows($result);
diff --git a/htdocs/compta/salaries/class/paymentsalary.class.php b/htdocs/compta/salaries/class/paymentsalary.class.php
index ecf4b16212b..76a781bfe9b 100644
--- a/htdocs/compta/salaries/class/paymentsalary.class.php
+++ b/htdocs/compta/salaries/class/paymentsalary.class.php
@@ -114,7 +114,7 @@ class PaymentSalary extends CommonObject
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -174,7 +174,7 @@ class PaymentSalary extends CommonObject
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."bank as b ON s.fk_bank = b.rowid";
$sql.= " WHERE s.rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -230,7 +230,7 @@ class PaymentSalary extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."payment_salary";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -355,7 +355,7 @@ class PaymentSalary extends CommonObject
$sql.= ", ".$conf->entity;
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
diff --git a/htdocs/compta/sociales/class/chargesociales.class.php b/htdocs/compta/sociales/class/chargesociales.class.php
index 6404d9f26c8..09e4ebaef0c 100644
--- a/htdocs/compta/sociales/class/chargesociales.class.php
+++ b/htdocs/compta/sociales/class/chargesociales.class.php
@@ -74,7 +74,7 @@ class ChargeSociales extends CommonObject
$sql.= " WHERE cs.fk_type = c.id";
$sql.= " AND cs.rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -137,7 +137,7 @@ class ChargeSociales extends CommonObject
$sql.= " ".$conf->entity;
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -192,7 +192,7 @@ class ChargeSociales extends CommonObject
if (! $error)
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."paiementcharge where fk_charge='".$this->id."'";
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -204,7 +204,7 @@ class ChargeSociales extends CommonObject
if (! $error)
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."chargesociales where rowid='".$this->id."'";
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -243,7 +243,7 @@ class ChargeSociales extends CommonObject
$sql.= " periode='".$this->db->idate($this->periode)."'";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -419,7 +419,7 @@ class ChargeSociales extends CommonObject
$sql.= ' FROM '.MAIN_DB_PREFIX.$table;
$sql.= ' WHERE '.$field.' = '.$this->id;
- dol_syslog(get_class($this)."::getSommePaiement sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::getSommePaiement", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -449,7 +449,7 @@ class ChargeSociales extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."chargesociales as e";
$sql.= " WHERE e.rowid = ".$id;
- dol_syslog(get_class($this)."::info sql=".$sql);
+ dol_syslog(get_class($this)."::info", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
diff --git a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php
index e89f2a273f8..95e796f98a0 100644
--- a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php
+++ b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php
@@ -116,7 +116,7 @@ class PaymentSocialContribution extends CommonObject
$sql.= " ".$this->paiementtype.", '".$this->db->escape($this->num_paiement)."', '".$this->db->escape($this->note)."', ".$user->id.",";
$sql.= " 0)";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -173,7 +173,7 @@ class PaymentSocialContribution extends CommonObject
$sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'bank as b ON t.fk_bank = b.rowid';
$sql.= " WHERE t.rowid = ".$id." AND t.fk_typepaiement = pt.id";
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -263,7 +263,7 @@ class PaymentSocialContribution extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -321,7 +321,7 @@ class PaymentSocialContribution extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."bank_url";
$sql.= " WHERE type='payment_sc' AND url_id=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
}
@@ -331,7 +331,7 @@ class PaymentSocialContribution extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."paiementcharge";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
}
@@ -560,7 +560,7 @@ class PaymentSocialContribution extends CommonObject
{
$sql = "UPDATE ".MAIN_DB_PREFIX."paiementcharge SET fk_bank = ".$id_bank." WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::update_fk_bank sql=".$sql);
+ dol_syslog(get_class($this)."::update_fk_bank", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
diff --git a/htdocs/compta/stats/cabyprodserv.php b/htdocs/compta/stats/cabyprodserv.php
index 2b2ad5be02f..1bc88e176d9 100644
--- a/htdocs/compta/stats/cabyprodserv.php
+++ b/htdocs/compta/stats/cabyprodserv.php
@@ -212,7 +212,7 @@ if ($modecompta == 'CREANCES-DETTES')
$sql.= " GROUP BY p.rowid";
$sql.= " ORDER BY p.ref";
- dol_syslog("cabyprodserv sql=".$sql);
+ dol_syslog("cabyprodserv", LOG_DEBUG);
$result = $db->query($sql);
if ($result) {
$num = $db->num_rows($result);
diff --git a/htdocs/compta/stats/casoc.php b/htdocs/compta/stats/casoc.php
index fd4afbfdf01..3535db5594a 100644
--- a/htdocs/compta/stats/casoc.php
+++ b/htdocs/compta/stats/casoc.php
@@ -250,7 +250,7 @@ $sql.= " GROUP BY s.rowid, s.nom";
$sql.= " ORDER BY s.rowid";
//echo $sql;
-dol_syslog("casoc sql=".$sql);
+dol_syslog("casoc", LOG_DEBUG);
$result = $db->query($sql);
if ($result) {
$num = $db->num_rows($result);
diff --git a/htdocs/compta/tva/class/tva.class.php b/htdocs/compta/tva/class/tva.class.php
index c605c97fed9..386158d1c7e 100644
--- a/htdocs/compta/tva/class/tva.class.php
+++ b/htdocs/compta/tva/class/tva.class.php
@@ -115,7 +115,7 @@ class Tva extends CommonObject
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -178,7 +178,7 @@ class Tva extends CommonObject
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -233,7 +233,7 @@ class Tva extends CommonObject
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."bank as b ON t.fk_bank = b.rowid";
$sql.= " WHERE t.rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -286,7 +286,7 @@ class Tva extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."tva";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -539,7 +539,7 @@ class Tva extends CommonObject
$sql.= ", ".$conf->entity;
$sql.= ")";
- dol_syslog(get_class($this)."::addPayment sql=".$sql);
+ dol_syslog(get_class($this)."::addPayment", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php
index 4187de7136c..727fa6486a9 100644
--- a/htdocs/contact/class/contact.class.php
+++ b/htdocs/contact/class/contact.class.php
@@ -155,7 +155,7 @@ class Contact extends CommonObject
$sql.= " ".(! empty($this->import_key)?"'".$this->import_key."'":"null");
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -276,7 +276,7 @@ class Contact extends CommonObject
$sql .= ", no_email=".($this->no_email?"'".$this->no_email."'":"0");
$sql .= " WHERE rowid=".$this->db->escape($id);
- dol_syslog(get_class($this)."::update sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -444,7 +444,7 @@ class Contact extends CommonObject
if ($user) $sql .= ", fk_user_modif=".$user->id;
$sql.= " WHERE rowid=".$this->db->escape($id);
- dol_syslog(get_class($this)."::update_perso this->birthday=".$this->birthday." - sql=".$sql);
+ dol_syslog(get_class($this)."::update_perso this->birthday=".$this->birthday." -", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -523,7 +523,7 @@ class Contact extends CommonObject
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON c.fk_soc = s.rowid";
$sql.= " WHERE c.rowid = ". $id;
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -664,7 +664,7 @@ class Contact extends CommonObject
$sql.=" AND fk_socpeople = ". $this->id;
$sql.=" GROUP BY tc.element";
- dol_syslog(get_class($this)."::load_ref_elements sql=".$sql);
+ dol_syslog(get_class($this)."::load_ref_elements", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
@@ -716,7 +716,7 @@ class Contact extends CommonObject
$sql.= " WHERE ec.fk_socpeople=".$this->id;
$sql.= " AND ec.fk_c_type_contact=tc.rowid";
$sql.= " AND tc.source='external'";
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -751,7 +751,7 @@ class Contact extends CommonObject
{
// Remove category
$sql = "DELETE FROM ".MAIN_DB_PREFIX."categorie_contact WHERE fk_socpeople = ".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -766,7 +766,7 @@ class Contact extends CommonObject
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."socpeople";
$sql .= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$result = $this->db->query($sql);
if (! $result)
{
@@ -866,7 +866,7 @@ class Contact extends CommonObject
$sql.= " WHERE mc.email = '".$this->db->escape($this->email)."'";
$sql.= " AND mc.statut NOT IN (-1,0)"; // -1 erreur, 0 non envoye, 1 envoye avec succes
- dol_syslog(get_class($this)."::getNbOfEMailings sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::getNbOfEMailings", LOG_DEBUG);
$resql=$this->db->query($sql);
@@ -1070,7 +1070,7 @@ class Contact extends CommonObject
$sql.= " WHERE rowid = ".$this->id;
$result = $this->db->query($sql);
- dol_syslog(get_class($this)."::setstatus sql=".$sql);
+ dol_syslog(get_class($this)."::setstatus", LOG_DEBUG);
if ($result)
{
// Appel des triggers
diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php
index 8e1d54944c0..5c2b2f04938 100644
--- a/htdocs/contact/list.php
+++ b/htdocs/contact/list.php
@@ -239,7 +239,7 @@ else
}
//print $sql;
-dol_syslog("contact/list.php sql=".$sql);
+dol_syslog("contact/list.php", LOG_DEBUG);
$result = $db->query($sql);
if ($result)
{
diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php
index daf22e0af7c..140d64c2daf 100644
--- a/htdocs/contrat/class/contrat.class.php
+++ b/htdocs/contrat/class/contrat.class.php
@@ -154,7 +154,7 @@ class Contrat extends CommonObject
$sql.= " commentaire = '".$this->db->escape($comment)."'";
$sql.= " WHERE rowid = ".$line_id . " AND (statut = 0 OR statut = 3 OR statut = 5)";
- dol_syslog(get_class($this)."::active_line sql=".$sql);
+ dol_syslog(get_class($this)."::active_line", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -315,7 +315,7 @@ class Contrat extends CommonObject
//$sql.= ", fk_user_valid = ".$user->id.", date_valid = '".$this->db->idate($now)."'";
$sql .= " WHERE rowid = ".$this->id . " AND statut = 0";
- dol_syslog(get_class($this)."::validate sql=".$sql);
+ dol_syslog(get_class($this)."::validate", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -416,7 +416,7 @@ class Contrat extends CommonObject
}
else $sql.= " WHERE rowid=".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -505,7 +505,7 @@ class Contrat extends CommonObject
$sql.= " WHERE d.fk_contrat = ".$this->id ." AND d.fk_product = p.rowid";
$sql.= " ORDER by d.rowid ASC";
- dol_syslog(get_class($this)."::fetch_lines sql=".$sql);
+ dol_syslog(get_class($this)."::fetch_lines", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -794,7 +794,7 @@ class Contrat extends CommonObject
}
else
{
- $this->error=$langs->trans("UnknownError: ".$this->db->error()." - sql=".$sql);
+ $this->error=$langs->trans("UnknownError: ".$this->db->error()." -", LOG_DEBUG);
dol_syslog(get_class($this)."::create - 10 - ".$this->error, LOG_ERR);
$this->db->rollback();
@@ -840,7 +840,7 @@ class Contrat extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."contratdet_log as cdl, ".MAIN_DB_PREFIX."contratdet as cd";
$sql.= " WHERE cdl.fk_contratdet=cd.rowid AND cd.fk_contrat=".$this->id;
- dol_syslog(get_class($this)."::delete contratdet_log sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete contratdet_log", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -861,7 +861,7 @@ class Contrat extends CommonObject
$sql= "DELETE FROM ".MAIN_DB_PREFIX."contratdet_log ";
$sql.= " WHERE ".MAIN_DB_PREFIX."contratdet_log.rowid IN (".implode(",",$tab_resql).")";
- dol_syslog(get_class($this)."::delete contratdet_log sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete contratdet_log", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -877,7 +877,7 @@ class Contrat extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."contratdet";
$sql.= " WHERE fk_contrat=".$this->id;
- dol_syslog(get_class($this)."::delete contratdet sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete contratdet", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -892,7 +892,7 @@ class Contrat extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."contrat";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::delete contrat sql=".$sql);
+ dol_syslog(get_class($this)."::delete contrat", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -1067,7 +1067,7 @@ class Contrat extends CommonObject
if ($date_end > 0) { $sql.= ",'".$this->db->idate($date_end)."'"; }
$sql.= ")";
- dol_syslog(get_class($this)."::addline sql=".$sql);
+ dol_syslog(get_class($this)."::addline", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
@@ -1214,7 +1214,7 @@ class Contrat extends CommonObject
else { $sql.=",date_cloture=null"; }
$sql .= " WHERE rowid = ".$rowid;
- dol_syslog(get_class($this)."::updateline sql=".$sql);
+ dol_syslog(get_class($this)."::updateline", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -1258,7 +1258,7 @@ class Contrat extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."contratdet";
$sql.= " WHERE rowid=".$idline;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -1468,7 +1468,7 @@ class Contrat extends CommonObject
$sql.= " WHERE fk_contrat =".$this->id;
if ($statut >= 0) $sql.= " AND statut = '$statut'";
- dol_syslog(get_class($this)."::array_detail() sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::array_detail()", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1504,7 +1504,7 @@ class Contrat extends CommonObject
$sql.= " WHERE fk_soc =".$this->socid;
if ($option == 'others') $sql.= " AND c.rowid != ".$this->id;
- dol_syslog(get_class($this)."::getOtherContracts() sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::getOtherContracts()", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1944,7 +1944,7 @@ class ContratLigne
if ($id) $sql.= " WHERE t.rowid = ".$id;
if ($ref) $sql.= " WHERE t.rowid = '".$ref."'";
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -2099,7 +2099,7 @@ class ContratLigne
$sql.= " commentaire='".$this->db->escape($this->commentaire)."'";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -2147,7 +2147,7 @@ class ContratLigne
$sql.= ",total_ttc=".price2num($this->total_ttc,'MT')."";
$sql.= " WHERE rowid = ".$this->rowid;
- dol_syslog(get_class($this)."::update_total sql=".$sql);
+ dol_syslog(get_class($this)."::update_total", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
diff --git a/htdocs/contrat/index.php b/htdocs/contrat/index.php
index 772b0e1ecdc..680ea9c201f 100644
--- a/htdocs/contrat/index.php
+++ b/htdocs/contrat/index.php
@@ -312,7 +312,7 @@ $sql.= " GROUP BY c.rowid, c.ref, c.datec, c.tms, c.statut, s.nom, s.rowid";
$sql.= " ORDER BY c.tms DESC";
$sql.= " LIMIT ".$max;
-dol_syslog("contrat/index.php sql=".$sql, LOG_DEBUG);
+dol_syslog("contrat/index.php", LOG_DEBUG);
$result=$db->query($sql);
if ($result)
{
diff --git a/htdocs/contrat/services.php b/htdocs/contrat/services.php
index 382dcad5e93..2f656d14211 100644
--- a/htdocs/contrat/services.php
+++ b/htdocs/contrat/services.php
@@ -113,7 +113,7 @@ $sql .= $db->order($sortfield,$sortorder);
$sql .= $db->plimit($limit + 1, $offset);
//print $sql;
-dol_syslog("contrat/services.php sql=".$sql);
+dol_syslog("contrat/services.php", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/boxes/box_actions.php b/htdocs/core/boxes/box_actions.php
index ff63927b526..9dcfc76016a 100644
--- a/htdocs/core/boxes/box_actions.php
+++ b/htdocs/core/boxes/box_actions.php
@@ -77,7 +77,7 @@ class box_actions extends ModeleBoxes
$sql.= " ORDER BY a.datec DESC";
$sql.= $db->plimit($max, 0);
- dol_syslog("Box_actions::loadBox sql=".$sql, LOG_DEBUG);
+ dol_syslog("Box_actions::loadBox", LOG_DEBUG);
$result = $db->query($sql);
if ($result)
{
diff --git a/htdocs/core/boxes/box_clients.php b/htdocs/core/boxes/box_clients.php
index b2ad0a6b718..12145294d64 100644
--- a/htdocs/core/boxes/box_clients.php
+++ b/htdocs/core/boxes/box_clients.php
@@ -73,7 +73,7 @@ class box_clients extends ModeleBoxes
$sql.= " ORDER BY s.tms DESC";
$sql.= $db->plimit($max, 0);
- dol_syslog(get_class($this)."::loadBox sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::loadBox", LOG_DEBUG);
$result = $db->query($sql);
if ($result)
{
diff --git a/htdocs/core/boxes/box_comptes.php b/htdocs/core/boxes/box_comptes.php
index 8fdc4aff39e..c66326b27fb 100644
--- a/htdocs/core/boxes/box_comptes.php
+++ b/htdocs/core/boxes/box_comptes.php
@@ -90,7 +90,7 @@ class box_comptes extends ModeleBoxes
$sql.= " ORDER BY label";
$sql.= $db->plimit($max, 0);
- dol_syslog(get_class($this)."::loadBox sql=".$sql);
+ dol_syslog(get_class($this)."::loadBox", LOG_DEBUG);
$result = $db->query($sql);
if ($result)
{
diff --git a/htdocs/core/boxes/box_prospect.php b/htdocs/core/boxes/box_prospect.php
index 9c7a666bc4a..c0234f97dc3 100644
--- a/htdocs/core/boxes/box_prospect.php
+++ b/htdocs/core/boxes/box_prospect.php
@@ -73,7 +73,7 @@ class box_prospect extends ModeleBoxes
$sql.= " ORDER BY s.tms DESC";
$sql.= $db->plimit($max, 0);
- dol_syslog(get_class($this)."::loadBox sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::loadBox", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/class/commoninvoice.class.php b/htdocs/core/class/commoninvoice.class.php
index 80d719decae..0bea45832e6 100644
--- a/htdocs/core/class/commoninvoice.class.php
+++ b/htdocs/core/class/commoninvoice.class.php
@@ -47,7 +47,7 @@ abstract class CommonInvoice extends CommonObject
$sql.= ' FROM '.MAIN_DB_PREFIX.$table;
$sql.= ' WHERE '.$field.' = '.$this->id;
- dol_syslog(get_class($this)."::getSommePaiement sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::getSommePaiement", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index e2b79448ea8..2eb63db6d9b 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -78,7 +78,7 @@ abstract class CommonObject
return -1;
}
- dol_syslog(get_class()."::isExistingObject sql=".$sql);
+ dol_syslog(get_class()."::isExistingObject", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
@@ -212,7 +212,7 @@ abstract class CommonObject
$sql.= "'".$this->db->idate($datecreate)."'";
$sql.= ", 4, '". $id_type_contact . "' ";
$sql.= ")";
- dol_syslog(get_class($this)."::add_contact sql=".$sql);
+ dol_syslog(get_class($this)."::add_contact", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
@@ -316,7 +316,7 @@ abstract class CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."element_contact";
$sql.= " WHERE rowid =".$rowid;
- dol_syslog(get_class($this)."::delete_contact sql=".$sql);
+ dol_syslog(get_class($this)."::delete_contact", LOG_DEBUG);
if ($this->db->query($sql))
{
if (! $notrigger)
@@ -361,7 +361,7 @@ abstract class CommonObject
$sql.= " WHERE element_id =".$this->id;
$sql.= " AND fk_c_type_contact IN (".$listId.")";
- dol_syslog(get_class($this)."::delete_linked_contact sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete_linked_contact", LOG_DEBUG);
if ($this->db->query($sql))
{
return 1;
@@ -406,7 +406,7 @@ abstract class CommonObject
if ($statut >= 0) $sql.= " AND ec.statut = '".$statut."'";
$sql.=" ORDER BY t.lastname ASC";
- dol_syslog(get_class($this)."::liste_contact sql=".$sql);
+ dol_syslog(get_class($this)."::liste_contact", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -461,7 +461,7 @@ abstract class CommonObject
$sql.= " AND ec.fk_c_type_contact=tc.rowid";
$sql.= " AND tc.element = '".$this->element."'";
- dol_syslog(get_class($this)."::swapContactStatus sql=".$sql);
+ dol_syslog(get_class($this)."::swapContactStatus", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -563,7 +563,7 @@ abstract class CommonObject
$sql.= " AND tc.active = 1";
if ($status) $sql.= " AND ec.statut = ".$status;
- dol_syslog(get_class($this)."::getIdContact sql=".$sql);
+ dol_syslog(get_class($this)."::getIdContact", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -805,7 +805,7 @@ abstract class CommonObject
if (is_object($user)) $sql.=", fk_user_modif = ".$user->id;
$sql.= " WHERE ".$id_field." = ".$id;
- dol_syslog(get_class($this)."::".__FUNCTION__." sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::".__FUNCTION__."", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -931,7 +931,7 @@ abstract class CommonObject
else $sql.= ' SET fk_projet = NULL';
$sql.= ' WHERE rowid = '.$this->id;
- dol_syslog(get_class($this)."::setProject sql=".$sql);
+ dol_syslog(get_class($this)."::setProject", LOG_DEBUG);
if ($this->db->query($sql))
{
$this->fk_project = $projectid;
@@ -1075,7 +1075,7 @@ abstract class CommonObject
// if ($this->element == 'facture') $sql.= " AND fk_statut < 2";
// if ($this->element == 'propal') $sql.= " AND fk_statut = 0";
- dol_syslog(get_class($this)."::setDocModel sql=".$sql);
+ dol_syslog(get_class($this)."::setDocModel", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1119,7 +1119,7 @@ abstract class CommonObject
if (! $renum) $sql.= ' AND rang = 0';
if ($renum) $sql.= ' AND rang <> 0';
- dol_syslog(get_class($this)."::line_order sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::line_order", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1139,7 +1139,7 @@ abstract class CommonObject
if ($fk_parent_line) $sql.= ' AND fk_parent_line IS NULL';
$sql.= ' ORDER BY rang ASC, rowid '.$rowidorder;
- dol_syslog(get_class($this)."::line_order search all parent lines sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::line_order search all parent lines", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1191,7 +1191,7 @@ abstract class CommonObject
$sql.= ' AND fk_parent_line = '.$id;
$sql.= ' ORDER BY rang ASC';
- dol_syslog(get_class($this)."::getChildrenOfLine search children lines for line ".$id." sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::getChildrenOfLine search children lines for line ".$id."", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1259,7 +1259,7 @@ abstract class CommonObject
$sql = 'UPDATE '.MAIN_DB_PREFIX.$this->table_element_line.' SET rang = '.$rang;
$sql.= ' WHERE rowid = '.$rowid;
- dol_syslog(get_class($this)."::updateRangOfLine sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::updateRangOfLine", LOG_DEBUG);
if (! $this->db->query($sql))
{
dol_print_error($this->db);
@@ -1353,7 +1353,7 @@ abstract class CommonObject
$sql = 'SELECT rang FROM '.MAIN_DB_PREFIX.$this->table_element_line;
$sql.= ' WHERE rowid ='.$rowid;
- dol_syslog(get_class($this)."::getRangOfLine sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::getRangOfLine", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1396,7 +1396,7 @@ abstract class CommonObject
$sql.= ' WHERE '.$this->fk_element.' = '.$this->id;
$sql.= ' AND fk_parent_line = '.$fk_parent_line;
- dol_syslog(get_class($this)."::line_max sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::line_max", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1417,7 +1417,7 @@ abstract class CommonObject
$sql = 'SELECT max(rang) FROM '.MAIN_DB_PREFIX.$this->table_element_line;
$sql.= ' WHERE '.$this->fk_element.' = '.$this->id;
- dol_syslog(get_class($this)."::line_max sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::line_max", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1445,7 +1445,7 @@ abstract class CommonObject
$sql.= " SET ref_ext = '".$this->db->escape($ref_ext)."'";
$sql.= " WHERE ".(isset($this->table_rowid)?$this->table_rowid:'rowid')." = ". $this->id;
- dol_syslog(get_class($this)."::update_ref_ext sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update_ref_ext", LOG_DEBUG);
if ($this->db->query($sql))
{
$this->ref_ext = $ref_ext;
@@ -1483,7 +1483,7 @@ abstract class CommonObject
$sql.= " SET note".$suffix." = ".(!empty($note)?("'".$this->db->escape($note)."'"):"NULL");
$sql.= " WHERE rowid =". $this->id;
- dol_syslog(get_class($this)."::update_note sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update_note", LOG_DEBUG);
if ($this->db->query($sql))
{
if ($suffix == '_public') $this->note_public = $note;
@@ -1558,7 +1558,7 @@ abstract class CommonObject
}
$sql.= ' ORDER by rowid'; // We want to be sure to always use same order of line to not change lines differently when option MAIN_ROUNDOFTOTAL_NOT_TOTALOFROUND is used
- dol_syslog(get_class($this)."::update_price sql=".$sql);
+ dol_syslog(get_class($this)."::update_price", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1658,7 +1658,7 @@ abstract class CommonObject
$sql .= ' WHERE rowid = '.$this->id;
//print "xx".$sql;
- dol_syslog(get_class($this)."::update_price sql=".$sql);
+ dol_syslog(get_class($this)."::update_price", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -1710,7 +1710,7 @@ abstract class CommonObject
$sql.= ", '".$this->element."'";
$sql.= ")";
- dol_syslog(get_class($this)."::add_object_linked sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::add_object_linked", LOG_DEBUG);
if ($this->db->query($sql))
{
$this->db->commit();
@@ -1787,7 +1787,7 @@ abstract class CommonObject
$sql .= ' ORDER BY sourcetype';
//print $sql;
- dol_syslog(get_class($this)."::fetchObjectLink sql=".$sql);
+ dol_syslog(get_class($this)."::fetchObjectLink", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1912,7 +1912,7 @@ abstract class CommonObject
$sql.= " AND sourcetype = '".$this->element."'";
}
- dol_syslog(get_class($this)."::updateObjectLinked sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::updateObjectLinked", LOG_DEBUG);
if ($this->db->query($sql))
{
return 1;
@@ -1966,7 +1966,7 @@ abstract class CommonObject
$sql.= " (fk_target = ".$this->id." AND targettype = '".$this->element."')";
}
- dol_syslog(get_class($this)."::deleteObjectLinked sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::deleteObjectLinked", LOG_DEBUG);
if ($this->db->query($sql))
{
return 1;
@@ -2001,7 +2001,7 @@ abstract class CommonObject
$sql.= " SET ".$fieldstatus." = ".$status;
$sql.= " WHERE rowid=".$elementId;
- dol_syslog(get_class($this)."::setStatut sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::setStatut", LOG_DEBUG);
if ($this->db->query($sql))
{
$this->db->commit();
@@ -2110,7 +2110,7 @@ abstract class CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX.$this->table_element."_extrafields";
$sql.= " WHERE fk_object = ".$rowid;
- dol_syslog(get_class($this)."::fetch_optionals sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch_optionals", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -2258,7 +2258,7 @@ abstract class CommonObject
}
$sql.=")";
- dol_syslog(get_class($this)."::insertExtraFields insert sql=".$sql);
+ dol_syslog(get_class($this)."::insertExtraFields insert", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -2527,7 +2527,7 @@ abstract class CommonObject
$sql.= " SET extraparams = ".(! empty($extraparams) ? "'".$this->db->escape($extraparams)."'" : "null");
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::setExtraParameters sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::setExtraParameters", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -3328,7 +3328,7 @@ abstract class CommonObject
$sql.= ", '".$mandatory."'";
$sql.= ")";
- dol_syslog(get_class($this)."::add_element_resource sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::add_element_resource", LOG_DEBUG);
if ($this->db->query($sql))
{
$this->db->commit();
@@ -3359,7 +3359,7 @@ abstract class CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."element_resources";
$sql.= " WHERE rowid =".$rowid;
- dol_syslog(get_class($this)."::delete_resource sql=".$sql);
+ dol_syslog(get_class($this)."::delete_resource", LOG_DEBUG);
if ($this->db->query($sql))
{
if (! $notrigger)
diff --git a/htdocs/core/class/cpays.class.php b/htdocs/core/class/cpays.class.php
index e6db8e4b2e9..5e32b9bad22 100644
--- a/htdocs/core/class/cpays.class.php
+++ b/htdocs/core/class/cpays.class.php
@@ -97,7 +97,7 @@ class Cpays // extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -158,7 +158,7 @@ class Cpays // extends CommonObject
if ($id) $sql.= " WHERE t.rowid = ".$id;
elseif ($code) $sql.= " WHERE t.code = '".$this->db->escape($code)."'";
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -217,7 +217,7 @@ class Cpays // extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -273,7 +273,7 @@ class Cpays // extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
diff --git a/htdocs/core/class/ctypent.class.php b/htdocs/core/class/ctypent.class.php
index 33070f83412..057e23892b4 100644
--- a/htdocs/core/class/ctypent.class.php
+++ b/htdocs/core/class/ctypent.class.php
@@ -102,7 +102,7 @@ class Ctypent // extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -163,7 +163,7 @@ class Ctypent // extends CommonObject
if ($id) $sql.= " WHERE t.id = ".$id;
elseif ($code) $sql.= " WHERE t.code = '".$this->db->escape($code)."'";
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -222,7 +222,7 @@ class Ctypent // extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -278,7 +278,7 @@ class Ctypent // extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
diff --git a/htdocs/core/class/discount.class.php b/htdocs/core/class/discount.class.php
index 23ce9f97f6d..6d45f1034f4 100644
--- a/htdocs/core/class/discount.class.php
+++ b/htdocs/core/class/discount.class.php
@@ -85,7 +85,7 @@ class DiscountAbsolute
if ($rowid) $sql.= " sr.rowid=".$rowid;
if ($fk_facture_source) $sql.= " sr.fk_facture_source=".$fk_facture_source;
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -159,7 +159,7 @@ class DiscountAbsolute
$sql.= " ".($this->fk_facture_source?"'".$this->fk_facture_source."'":"null");
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -195,7 +195,7 @@ class DiscountAbsolute
$sql.=" AND fk_facture_source = ".$this->fk_facture_source;
//$sql.=" AND rowid != ".$this->id;
- dol_syslog(get_class($this)."::delete Check if we can remove discount sql=".$sql);
+ dol_syslog(get_class($this)."::delete Check if we can remove discount", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -222,7 +222,7 @@ class DiscountAbsolute
$sql.= " AND (fk_facture_line IS NULL"; // Not used as absolute simple discount
$sql.= " AND fk_facture IS NULL)"; // Not used as credit note and not used as deposit
- dol_syslog(get_class($this)."::delete Delete discount sql=".$sql);
+ dol_syslog(get_class($this)."::delete Delete discount", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -233,7 +233,7 @@ class DiscountAbsolute
$sql.=" set paye=0, fk_statut=1";
$sql.=" WHERE (type = 2 or type = 3) AND rowid=".$this->fk_facture_source;
- dol_syslog(get_class($this)."::delete Update credit note or deposit invoice statut sql=".$sql);
+ dol_syslog(get_class($this)."::delete Update credit note or deposit invoice statut", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -291,7 +291,7 @@ class DiscountAbsolute
if ($rowidinvoice) $sql.=" SET fk_facture = ".$rowidinvoice;
$sql.=" WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::link_to_invoice sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::link_to_invoice", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -320,7 +320,7 @@ class DiscountAbsolute
$sql.=" SET fk_facture_line = NULL, fk_facture = NULL";
$sql.=" WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::unlink_invoice sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::unlink_invoice", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -355,7 +355,7 @@ class DiscountAbsolute
if ($filter) $sql.=' AND ('.$filter.')';
if ($maxvalue) $sql.=' AND rc.amount_ttc <= '.price2num($maxvalue);
- dol_syslog(get_class($this)."::getAvailableDiscounts sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::getAvailableDiscounts", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -384,7 +384,7 @@ class DiscountAbsolute
$sql.= ' WHERE rc.fk_facture_source=f.rowid AND rc.fk_facture = '.$invoice->id;
$sql.= ' AND f.type = 2';
- dol_syslog(get_class($this)."::getSumCreditNotesUsed sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::getSumCreditNotesUsed", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -410,7 +410,7 @@ class DiscountAbsolute
$sql.= ' WHERE rc.fk_facture_source=f.rowid AND rc.fk_facture = '.$invoice->id;
$sql.= ' AND f.type = 3';
- dol_syslog(get_class($this)."::getSumDepositsUsed sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::getSumDepositsUsed", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/class/events.class.php b/htdocs/core/class/events.class.php
index b344a0c4059..98e4b101669 100644
--- a/htdocs/core/class/events.class.php
+++ b/htdocs/core/class/events.class.php
@@ -132,7 +132,7 @@ class Events // extends CommonObject
$sql.= " '".$this->db->escape($this->description)."'";
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -174,7 +174,7 @@ class Events // extends CommonObject
$sql.= " description='".$this->db->escape($this->description)."'";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -209,7 +209,7 @@ class Events // extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."events as t";
$sql.= " WHERE t.rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -252,7 +252,7 @@ class Events // extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."events";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php
index df302f0ffad..df6d16767d6 100644
--- a/htdocs/core/class/extrafields.class.php
+++ b/htdocs/core/class/extrafields.class.php
@@ -255,7 +255,7 @@ class ExtraFields
$sql.= " '".$params."'";
$sql.=')';
- dol_syslog(get_class($this)."::create_label sql=".$sql);
+ dol_syslog(get_class($this)."::create_label", LOG_DEBUG);
if ($this->db->query($sql))
{
return 1;
@@ -318,7 +318,7 @@ class ExtraFields
$sql.= " AND entity IN (0,".$conf->entity.')';
$sql.= " AND elementtype = '".$elementtype."'";
- dol_syslog(get_class($this)."::delete_label sql=".$sql);
+ dol_syslog(get_class($this)."::delete_label", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -480,7 +480,7 @@ class ExtraFields
$sql.= " '".$pos."',";
$sql.= " '".$param."'";
$sql.= ")";
- dol_syslog(get_class($this)."::update_label sql=".$sql);
+ dol_syslog(get_class($this)."::update_label", LOG_DEBUG);
$resql2=$this->db->query($sql);
if ($resql1 && $resql2)
@@ -537,7 +537,7 @@ class ExtraFields
if ($elementtype) $sql.= " AND elementtype = '".$elementtype."'";
$sql.= " ORDER BY pos";
- dol_syslog(get_class($this)."::fetch_name_optionals_label sql=".$sql);
+ dol_syslog(get_class($this)."::fetch_name_optionals_label", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index bd4783282f2..c83bbf6864c 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -486,7 +486,7 @@ class Form
$sql.= " WHERE active = 1";
//$sql.= " ORDER BY code ASC";
- dol_syslog(get_class($this)."::select_country sql=".$sql);
+ dol_syslog(get_class($this)."::select_country", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -795,7 +795,7 @@ class Form
$sql.=$this->db->order("nom","ASC");
if ($limit > 0) $sql.=$this->db->plimit($limit);
- dol_syslog(get_class($this)."::select_thirdparty_list sql=".$sql);
+ dol_syslog(get_class($this)."::select_thirdparty_list", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -889,7 +889,7 @@ class Form
if ($filter) $sql.= " AND ".$filter;
$sql.= " ORDER BY re.description ASC";
- dol_syslog(get_class($this)."::select_remises sql=".$sql);
+ dol_syslog(get_class($this)."::select_remises", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -995,7 +995,7 @@ class Form
if (! empty($conf->global->CONTACT_HIDE_INACTIVE_IN_COMBOBOX)) $sql.= " AND sp.statut<>0 ";
$sql.= " ORDER BY sp.lastname ASC";
- dol_syslog(get_class($this)."::select_contacts sql=".$sql);
+ dol_syslog(get_class($this)."::select_contacts", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1162,7 +1162,7 @@ class Form
if (! empty($conf->global->USER_HIDE_INACTIVE_IN_COMBOBOX)) $sql.= " AND u.statut<>0 ";
$sql.= " ORDER BY u.lastname ASC";
- dol_syslog(get_class($this)."::select_dolusers sql=".$sql);
+ dol_syslog(get_class($this)."::select_dolusers", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1412,7 +1412,7 @@ class Form
$sql.= $db->plimit($limit);
// Build output string
- dol_syslog(get_class($this)."::select_produits_list search product sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::select_produits_list search product", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -1435,7 +1435,7 @@ class Form
$sql.= " WHERE fk_product_price=".$objp->price_rowid;
$sql.= " ORDER BY quantity ASC";
- dol_syslog(get_class($this)."::select_produits_list search price by qty sql=".$sql);
+ dol_syslog(get_class($this)."::select_produits_list search price by qty", LOG_DEBUG);
$result2 = $this->db->query($sql);
if ($result2)
{
@@ -1775,7 +1775,7 @@ class Form
// Build output string
- dol_syslog(get_class($this)."::select_produits_fournisseurs_list sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::select_produits_fournisseurs_list", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -1921,7 +1921,7 @@ class Form
$sql.= " AND p.rowid = ".$productid;
$sql.= " ORDER BY s.nom, pfp.ref_fourn DESC";
- dol_syslog(get_class($this)."::select_product_fourn_price sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::select_product_fourn_price", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
@@ -2005,7 +2005,7 @@ class Form
$sql .= " WHERE a.fk_soc = ".$socid;
$sql .= " ORDER BY a.label ASC";
- dol_syslog(get_class($this)."::select_address sql=".$sql);
+ dol_syslog(get_class($this)."::select_address", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -2167,7 +2167,7 @@ class Form
$sql.= " FROM ".MAIN_DB_PREFIX.'c_input_reason';
$sql.= " WHERE active=1";
$sql.= " ORDER BY rowid";
- dol_syslog(get_class($this)."::loadCacheInputReason sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::loadCacheInputReason", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -2248,7 +2248,7 @@ class Form
$sql.= " FROM ".MAIN_DB_PREFIX."c_paiement";
$sql.= " WHERE active > 0";
$sql.= " ORDER BY id";
- dol_syslog(get_class($this)."::load_cache_types_paiements sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::load_cache_types_paiements", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -2437,7 +2437,7 @@ class Form
if ($filtre) $sql.=" AND ".$filtre;
$sql.= " ORDER BY label";
- dol_syslog(get_class($this)."::select_comptes sql=".$sql);
+ dol_syslog(get_class($this)."::select_comptes", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -4224,7 +4224,7 @@ class Form
if (is_array($include) && $includeGroups) $sql.= " AND ug.rowid IN ('".$includeGroups."')";
$sql.= " ORDER BY ug.nom ASC";
- dol_syslog(get_class($this)."::select_dolgroups sql=".$sql);
+ dol_syslog(get_class($this)."::select_dolgroups", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php
index a22f0b38c10..2f1be6d7d56 100644
--- a/htdocs/core/class/html.formcompany.class.php
+++ b/htdocs/core/class/html.formcompany.class.php
@@ -229,7 +229,7 @@ class FormCompany
if ($country_codeid && ! is_numeric($country_codeid)) $sql .= " AND p.code = '".$country_codeid."'";
$sql .= " ORDER BY p.code, d.code_departement";
- dol_syslog(get_class($this)."::select_departement sql=".$sql);
+ dol_syslog(get_class($this)."::select_departement", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -306,7 +306,7 @@ class FormCompany
$sql.= " WHERE r.fk_pays=p.rowid AND r.active = 1 and p.active = 1";
$sql.= " ORDER BY p.code, p.libelle ASC";
- dol_syslog(get_class($this)."::select_region sql=".$sql);
+ dol_syslog(get_class($this)."::select_region", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -369,7 +369,7 @@ class FormCompany
$sql = "SELECT rowid, code, civilite as civility_label, active FROM ".MAIN_DB_PREFIX."c_civilite";
$sql.= " WHERE active = 1";
- dol_syslog("Form::select_civility sql=".$sql);
+ dol_syslog("Form::select_civility", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -447,7 +447,7 @@ class FormCompany
if ($filter) $sql .= " ".$filter;
$sql .= " ORDER BY p.code";
- dol_syslog(get_class($this)."::select_juridicalstatus sql=".$sql);
+ dol_syslog(get_class($this)."::select_juridicalstatus", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/class/html.formcontract.class.php b/htdocs/core/class/html.formcontract.class.php
index cfc5be29b92..e0d550b4205 100644
--- a/htdocs/core/class/html.formcontract.class.php
+++ b/htdocs/core/class/html.formcontract.class.php
@@ -67,7 +67,7 @@ class FormContract
if ($socid == 0) $sql.= " AND (c.fk_soc = 0 OR c.fk_soc IS NULL)";
else $sql.= " AND c.fk_soc = ".$socid;
- dol_syslog(get_class($this)."::select_contract sql=".$sql);
+ dol_syslog(get_class($this)."::select_contract", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/class/html.formorder.class.php b/htdocs/core/class/html.formorder.class.php
index 6bc626b13f3..5ea5b33c1f4 100644
--- a/htdocs/core/class/html.formorder.class.php
+++ b/htdocs/core/class/html.formorder.class.php
@@ -116,7 +116,7 @@ class FormOrder
$sql.= " FROM ".MAIN_DB_PREFIX."c_input_method";
$sql.= " WHERE active = 1";
- dol_syslog(get_class($this)."::selectInputMethod sql=".$sql);
+ dol_syslog(get_class($this)."::selectInputMethod", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php
index b6065909ade..35ebe48e168 100644
--- a/htdocs/core/class/html.formother.class.php
+++ b/htdocs/core/class/html.formother.class.php
@@ -1122,7 +1122,7 @@ class FormOther
$sql.= " FROM ".MAIN_DB_PREFIX.$dictionarytable;
$sql.= " ORDER BY ".$labelfield;
- dol_syslog(get_class($this)."::select_dictionary sql=".$sql);
+ dol_syslog(get_class($this)."::select_dictionary", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
diff --git a/htdocs/core/class/html.formprojet.class.php b/htdocs/core/class/html.formprojet.class.php
index 2c371d4afcd..1ea498e19dd 100644
--- a/htdocs/core/class/html.formprojet.class.php
+++ b/htdocs/core/class/html.formprojet.class.php
@@ -79,7 +79,7 @@ class FormProjets
if ($socid == 0) $sql.= " AND (p.fk_soc=0 OR p.fk_soc IS NULL)";
$sql.= " ORDER BY p.title ASC";
- dol_syslog(get_class($this)."::select_projects sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::select_projects", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/class/html.formpropal.class.php b/htdocs/core/class/html.formpropal.class.php
index fcbe46ab51b..df0f2d644dd 100644
--- a/htdocs/core/class/html.formpropal.class.php
+++ b/htdocs/core/class/html.formpropal.class.php
@@ -56,7 +56,7 @@ class FormPropal
$sql = "SELECT id, code, label, active FROM ".MAIN_DB_PREFIX."c_propalst";
$sql .= " WHERE active = 1";
- dol_syslog(get_class($this)."::selectProposalStatus sql=".$sql);
+ dol_syslog(get_class($this)."::selectProposalStatus", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/class/html.formsocialcontrib.class.php b/htdocs/core/class/html.formsocialcontrib.class.php
index f84f14c1446..b3c5a4c7d9c 100644
--- a/htdocs/core/class/html.formsocialcontrib.class.php
+++ b/htdocs/core/class/html.formsocialcontrib.class.php
@@ -79,7 +79,7 @@ class FormSocialContrib
$sql.= " ORDER BY c.libelle ASC";
}
- dol_syslog("Form::select_type_socialcontrib sql=".$sql, LOG_DEBUG);
+ dol_syslog("Form::select_type_socialcontrib", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/class/infobox.class.php b/htdocs/core/class/infobox.class.php
index c01d2d1f0f5..43c057ac859 100644
--- a/htdocs/core/class/infobox.class.php
+++ b/htdocs/core/class/infobox.class.php
@@ -73,7 +73,7 @@ class InfoBox
}
}
- dol_syslog(get_class()."::listBoxes get default box list for mode=".$mode." userid=".(is_object($user)?$user->id:'')." sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class()."::listBoxes get default box list for mode=".$mode." userid=".(is_object($user)?$user->id:'')."", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
@@ -212,7 +212,7 @@ class InfoBox
$sql.= " AND fk_user = ".$userid;
$sql.= " AND position = ".$zone;
- dol_syslog(get_class()."::saveboxorder sql=".$sql);
+ dol_syslog(get_class()."::saveboxorder", LOG_DEBUG);
$result = $db->query($sql);
if ($result)
{
@@ -243,7 +243,7 @@ class InfoBox
$sql.= " ".$conf->entity;
$sql.= ")";
- dol_syslog(get_class()."::saveboxorder sql=".$sql);
+ dol_syslog(get_class()."::saveboxorder", LOG_DEBUG);
$result = $db->query($sql);
if ($result < 0)
{
diff --git a/htdocs/core/class/link.class.php b/htdocs/core/class/link.class.php
index 08d520d519e..e92aa273105 100644
--- a/htdocs/core/class/link.class.php
+++ b/htdocs/core/class/link.class.php
@@ -93,7 +93,7 @@ class Link extends CommonObject
$sql .= ", '" . $this->objecttype . "'";
$sql .= ", " . $this->objectid . ")";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result) {
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX . "links");
@@ -256,7 +256,7 @@ class Link extends CommonObject
$sql .= " ORDER BY " . $sortfield . " " . $sortorder;
}
- dol_syslog(get_class($this)."::fetchAll sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetchAll", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -305,7 +305,7 @@ class Link extends CommonObject
$sql .= " WHERE rowid = " . $rowid;
if($conf->entity != 0) $sql .= " AND entity = " . $conf->entity;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/class/menubase.class.php b/htdocs/core/class/menubase.class.php
index 966b9ac7f77..60375f8c283 100644
--- a/htdocs/core/class/menubase.class.php
+++ b/htdocs/core/class/menubase.class.php
@@ -162,7 +162,7 @@ class Menubase
$sql.= " '".$this->user."'";
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -232,7 +232,7 @@ class Menubase
$sql.= " usertype='".$this->user."'";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -277,7 +277,7 @@ class Menubase
$sql.= " FROM ".MAIN_DB_PREFIX."menu as t";
$sql.= " WHERE t.rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -330,7 +330,7 @@ class Menubase
$sql = "DELETE FROM ".MAIN_DB_PREFIX."menu";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -516,7 +516,7 @@ class Menubase
//$tmp1=dol_microtime_float();
//print '>>> 1 0
';
- dol_syslog(get_class($this)."::menuLoad mymainmenu=".$mymainmenu." myleftmenu=".$myleftmenu." type_user=".$type_user." menu_handler=".$menu_handler." tabMenu size=".count($tabMenu)." sql=".$sql);
+ dol_syslog(get_class($this)."::menuLoad mymainmenu=".$mymainmenu." myleftmenu=".$myleftmenu." type_user=".$type_user." menu_handler=".$menu_handler." tabMenu size=".count($tabMenu)."", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/class/notify.class.php b/htdocs/core/class/notify.class.php
index 317b00dd33a..03e2a641828 100644
--- a/htdocs/core/class/notify.class.php
+++ b/htdocs/core/class/notify.class.php
@@ -99,7 +99,7 @@ class Notify
$sql.= " AND s.entity IN (".getEntity('societe', 1).")";
$sql.= " AND s.rowid = ".$socid;
- dol_syslog("Notify.class::countDefinedNotifications ".$action.", ".$socid." sql=".$sql);
+ dol_syslog("Notify.class::countDefinedNotifications ".$action.", ".$socid."", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
@@ -147,7 +147,7 @@ class Notify
else $sql.= " AND a.code = '".$action."'"; // New usage
$sql .= " AND s.rowid = ".$socid;
- dol_syslog("Notify::send sql=".$sql);
+ dol_syslog("Notify::send", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -226,7 +226,7 @@ class Notify
$sql = "INSERT INTO ".MAIN_DB_PREFIX."notify (daten, fk_action, fk_contact, objet_type, objet_id, email)";
$sql.= " VALUES ('".$this->db->idate($now)."', ".$actiondefid.", ".$obj->cid.", '".$objet_type."', ".$objet_id.", '".$this->db->escape($obj->email)."')";
- dol_syslog("Notify::send sql=".$sql);
+ dol_syslog("Notify::send", LOG_DEBUG);
if (! $this->db->query($sql) )
{
dol_print_error($this->db);
diff --git a/htdocs/core/class/stats.class.php b/htdocs/core/class/stats.class.php
index 5018d63cecf..b2e85b3113a 100644
--- a/htdocs/core/class/stats.class.php
+++ b/htdocs/core/class/stats.class.php
@@ -334,7 +334,7 @@ abstract class Stats
{
$result = array();
- dol_syslog(get_class($this).'::'.__FUNCTION__." sql=".$sql);
+ dol_syslog(get_class($this).'::'.__FUNCTION__."", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -364,7 +364,7 @@ abstract class Stats
{
$result = array();
- dol_syslog(get_class($this).'::'.__FUNCTION__." sql=".$sql);
+ dol_syslog(get_class($this).'::'.__FUNCTION__."", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -400,7 +400,7 @@ abstract class Stats
$result=array();
$res=array();
- dol_syslog(get_class($this).'::'.__FUNCTION__." sql=".$sql);
+ dol_syslog(get_class($this).'::'.__FUNCTION__."", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -451,7 +451,7 @@ abstract class Stats
$result=array();
$res=array();
- dol_syslog(get_class($this).'::'.__FUNCTION__." sql=".$sql);
+ dol_syslog(get_class($this).'::'.__FUNCTION__."", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
@@ -499,7 +499,7 @@ abstract class Stats
$result=array();
$res=array();
- dol_syslog(get_class($this).'::'.__FUNCTION__." sql=".$sql);
+ dol_syslog(get_class($this).'::'.__FUNCTION__."", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -548,7 +548,7 @@ abstract class Stats
$result=array();
$res=array();
- dol_syslog(get_class($this).'::'.__FUNCTION__." sql=".$sql);
+ dol_syslog(get_class($this).'::'.__FUNCTION__."", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/db/mysql.class.php b/htdocs/core/db/mysql.class.php
index 00cc3868cd6..5e5b4c360d0 100644
--- a/htdocs/core/db/mysql.class.php
+++ b/htdocs/core/db/mysql.class.php
@@ -849,7 +849,7 @@ class DoliDBMysql extends DoliDB
$sql="FLUSH Privileges";
- dol_syslog(get_class($this)."::DDLCreateUser sql=".$sql);
+ dol_syslog(get_class($this)."::DDLCreateUser", LOG_DEBUG);
$resql=$this->query($sql);
if (! $resql)
{
diff --git a/htdocs/core/db/mysqli.class.php b/htdocs/core/db/mysqli.class.php
index 336780a1a09..16915dcd22d 100644
--- a/htdocs/core/db/mysqli.class.php
+++ b/htdocs/core/db/mysqli.class.php
@@ -853,7 +853,7 @@ class DoliDBMysqli extends DoliDB
$sql="FLUSH Privileges";
- dol_syslog(get_class($this)."::DDLCreateUser sql=".$sql);
+ dol_syslog(get_class($this)."::DDLCreateUser", LOG_DEBUG);
$resql=$this->query($sql);
if (! $resql)
{
diff --git a/htdocs/core/db/sqlite.class.php b/htdocs/core/db/sqlite.class.php
index f06a92c401f..45c1bbd182f 100644
--- a/htdocs/core/db/sqlite.class.php
+++ b/htdocs/core/db/sqlite.class.php
@@ -981,7 +981,7 @@ class DoliDBSqlite extends DoliDB
$sql.= " VALUES ('".$this->escape($dolibarr_main_db_host)."','".$this->escape($dolibarr_main_db_name)."','".addslashes($dolibarr_main_db_user)."'";
$sql.= ",'Y','Y','Y','Y','Y','Y','Y','Y','Y')";
- dol_syslog(get_class($this)."::DDLCreateUser sql=".$sql);
+ dol_syslog(get_class($this)."::DDLCreateUser", LOG_DEBUG);
$resql=$this->query($sql);
if (! $resql)
{
@@ -991,7 +991,7 @@ class DoliDBSqlite extends DoliDB
$sql="FLUSH Privileges";
- dol_syslog(get_class($this)."::DDLCreateUser sql=".$sql);
+ dol_syslog(get_class($this)."::DDLCreateUser", LOG_DEBUG);
$resql=$this->query($sql);
if (! $resql)
{
diff --git a/htdocs/core/lib/admin.lib.php b/htdocs/core/lib/admin.lib.php
index 2f5e217641f..9040d6a1caf 100644
--- a/htdocs/core/lib/admin.lib.php
+++ b/htdocs/core/lib/admin.lib.php
@@ -393,7 +393,7 @@ function dolibarr_del_const($db, $name, $entity=1)
$sql.= ")";
if ($entity >= 0) $sql.= " AND entity = ".$entity;
- dol_syslog("admin.lib::dolibarr_del_const sql=".$sql);
+ dol_syslog("admin.lib::dolibarr_del_const", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -427,7 +427,7 @@ function dolibarr_get_const($db, $name, $entity=1)
$sql.= " WHERE name = ".$db->encrypt($name,1);
$sql.= " AND entity = ".$entity;
- dol_syslog("admin.lib::dolibarr_get_const sql=".$sql);
+ dol_syslog("admin.lib::dolibarr_get_const", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -474,7 +474,7 @@ function dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $not
$sql.= " WHERE name = ".$db->encrypt($name,1);
if ($entity >= 0) $sql.= " AND entity = ".$entity;
- dol_syslog("admin.lib::dolibarr_set_const sql=".$sql, LOG_DEBUG);
+ dol_syslog("admin.lib::dolibarr_set_const", LOG_DEBUG);
$resql=$db->query($sql);
if (strcmp($value,'')) // true if different. Must work for $value='0' or $value=0
@@ -487,7 +487,7 @@ function dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $not
//print "sql".$value."-".pg_escape_string($value)."-".$sql;exit;
//print "xx".$db->escape($value);
- dol_syslog("admin.lib::dolibarr_set_const sql=".$sql, LOG_DEBUG);
+ dol_syslog("admin.lib::dolibarr_set_const", LOG_DEBUG);
$resql=$db->query($sql);
}
@@ -1041,7 +1041,7 @@ function form_constantes($tableau,$strictw3c=0)
$sql.= " ORDER BY name ASC, entity DESC";
$result = $db->query($sql);
- dol_syslog("List params sql=".$sql);
+ dol_syslog("List params", LOG_DEBUG);
if ($result)
{
$obj = $db->fetch_object($result); // Take first result of select
@@ -1215,7 +1215,7 @@ function addDocumentModel($name, $type, $label='', $description='')
$sql.= (! empty($description)?"'".$db->escape($description)."'":"null");
$sql.= ")";
- dol_syslog("admin.lib::addDocumentModel sql=".$sql);
+ dol_syslog("admin.lib::addDocumentModel", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -1248,7 +1248,7 @@ function delDocumentModel($name, $type)
$sql.= " AND type = '".$type."'";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog("admin.lib::delDocumentModel sql=".$sql);
+ dol_syslog("admin.lib::delDocumentModel", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php
index 0851fb0b7c1..9bf8bead072 100644
--- a/htdocs/core/lib/company.lib.php
+++ b/htdocs/core/lib/company.lib.php
@@ -267,7 +267,7 @@ function getCountry($searchkey,$withcode='',$dbtouse=0,$outputlangs='',$entconv=
elseif (! empty($searchkey)) $sql.= " WHERE code='".$db->escape($searchkey)."'";
else $sql.= " WHERE libelle='".$db->escape($searchlabel)."'";
- dol_syslog("Company.lib::getCountry sql=".$sql);
+ dol_syslog("Company.lib::getCountry", LOG_DEBUG);
$resql=$dbtouse->query($sql);
if ($resql)
{
@@ -317,7 +317,7 @@ function getState($id,$withcode='',$dbtouse=0)
$sql = "SELECT rowid, code_departement as code, nom as label FROM ".MAIN_DB_PREFIX."c_departements";
$sql.= " WHERE rowid=".$id;
- dol_syslog("Company.lib::getState sql=".$sql);
+ dol_syslog("Company.lib::getState", LOG_DEBUG);
$resql=$dbtouse->query($sql);
if ($resql)
{
@@ -394,7 +394,7 @@ function getFormeJuridiqueLabel($code)
$sql = "SELECT libelle FROM ".MAIN_DB_PREFIX."c_forme_juridique";
$sql.= " WHERE code='$code'";
- dol_syslog("Company.lib::getFormeJuridiqueLabel sql=".$sql);
+ dol_syslog("Company.lib::getFormeJuridiqueLabel", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -953,7 +953,7 @@ function show_actions_todo($conf,$langs,$db,$object,$objcon='',$noprint=0)
$sql.= " AND ((a.percent >= 0 AND a.percent < 100) OR (a.percent = -1 AND a.datep > '".$db->idate($now)."'))";
$sql.= " ORDER BY a.datep DESC, a.id DESC";
- dol_syslog("company.lib::show_actions_todo sql=".$sql);
+ dol_syslog("company.lib::show_actions_todo", LOG_DEBUG);
$result=$db->query($sql);
if ($result)
{
@@ -1089,7 +1089,7 @@ function show_actions_done($conf,$langs,$db,$object,$objcon='',$noprint=0)
$sql.= " AND (a.percent = 100 OR (a.percent = -1 AND a.datep <= '".$db->idate($now)."'))";
$sql.= " ORDER BY a.datep DESC, a.id DESC";
- dol_syslog("company.lib::show_actions_done sql=".$sql, LOG_DEBUG);
+ dol_syslog("company.lib::show_actions_done", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -1141,7 +1141,7 @@ function show_actions_done($conf,$langs,$db,$object,$objcon='',$noprint=0)
$sql.= " AND mc.fk_mailing=m.rowid";
$sql.= " ORDER BY mc.date_envoi DESC, m.rowid DESC";
- dol_syslog("company.lib::show_actions_done sql=".$sql, LOG_DEBUG);
+ dol_syslog("company.lib::show_actions_done", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index a22c38834cf..1cd4f582494 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -2934,7 +2934,7 @@ function get_localtax($tva, $local, $thirdparty_buyer="", $thirdparty_seller="")
$sql .= " WHERE t.fk_pays = p.rowid AND p.code = '".$thirdparty_seller->country_code."'";
$sql .= " AND t.taux = ".$tva." AND t.active = 1";
- dol_syslog("get_localtax sql=".$sql);
+ dol_syslog("get_localtax", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php
index 2f2a313699a..606589971a9 100644
--- a/htdocs/core/lib/functions2.lib.php
+++ b/htdocs/core/lib/functions2.lib.php
@@ -744,7 +744,7 @@ function get_next_value($db,$mask,$table,$field,$where='',$objsoc='',$date='',$m
if ($sqlwhere) $sql.=' AND '.$sqlwhere;
//print $sql.'
';
- dol_syslog("functions2::get_next_value mode=".$mode." sql=".$sql, LOG_DEBUG);
+ dol_syslog("functions2::get_next_value mode=".$mode."", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -783,7 +783,7 @@ function get_next_value($db,$mask,$table,$field,$where='',$objsoc='',$date='',$m
if ($where) $sql.=$where;
if ($sqlwhere) $sql.=' AND '.$sqlwhere;
- dol_syslog("functions2::get_next_value sql=".$sql);
+ dol_syslog("functions2::get_next_value", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -1168,7 +1168,7 @@ function dol_set_user_param($db, $conf, &$user, $tab)
$i++;
}
$sql.= ")";
- dol_syslog("functions2.lib::dol_set_user_param sql=".$sql, LOG_DEBUG);
+ dol_syslog("functions2.lib::dol_set_user_param", LOG_DEBUG);
$resql=$db->query($sql);
if (! $resql)
@@ -1187,7 +1187,7 @@ function dol_set_user_param($db, $conf, &$user, $tab)
$sql.= " VALUES (".$user->id.",".$conf->entity.",";
$sql.= " '".$key."','".$db->escape($value)."')";
- dol_syslog("functions2.lib::dol_set_user_param sql=".$sql, LOG_DEBUG);
+ dol_syslog("functions2.lib::dol_set_user_param", LOG_DEBUG);
$result=$db->query($sql);
if (! $result)
{
diff --git a/htdocs/core/lib/invoice2.lib.php b/htdocs/core/lib/invoice2.lib.php
index 9309d083187..39405db4468 100644
--- a/htdocs/core/lib/invoice2.lib.php
+++ b/htdocs/core/lib/invoice2.lib.php
@@ -128,7 +128,7 @@ function rebuild_merge_pdf($db, $langs, $conf, $diroutputpdf, $newlangid, $filte
if ($sqlorder) $sql.=$sqlorder;
//print $sql; exit;
- dol_syslog("scripts/invoices/rebuild_merge.php: sql=".$sql);
+ dol_syslog("scripts/invoices/rebuild_merge.php:", LOG_DEBUG);
if ($usestdout) print '--- start'."\n";
@@ -139,7 +139,7 @@ function rebuild_merge_pdf($db, $langs, $conf, $diroutputpdf, $newlangid, $filte
$result = 0;
$files = array() ; // liste les fichiers
- dol_syslog("scripts/invoices/rebuild_merge.php sql=".$sql);
+ dol_syslog("scripts/invoices/rebuild_merge.php", LOG_DEBUG);
if ( $resql=$db->query($sql) )
{
$num = $db->num_rows($resql);
diff --git a/htdocs/core/lib/price.lib.php b/htdocs/core/lib/price.lib.php
index ac9845f22a1..00144db74e5 100644
--- a/htdocs/core/lib/price.lib.php
+++ b/htdocs/core/lib/price.lib.php
@@ -111,7 +111,7 @@ function calcul_price_total($qty, $pu, $remise_percent_ligne, $txtva, $uselocalt
$sql.= " FROM ".MAIN_DB_PREFIX."c_tva as cv";
$sql.= " WHERE cv.taux = ".$txtva;
$sql.= " AND cv.fk_pays = ".$countryid;
- dol_syslog("calcul_price_total search vat information sql=".$sql);
+ dol_syslog("calcul_price_total search vat information", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/lib/sendings.lib.php b/htdocs/core/lib/sendings.lib.php
index 2bfb2ba7c17..d2f3bf563c6 100644
--- a/htdocs/core/lib/sendings.lib.php
+++ b/htdocs/core/lib/sendings.lib.php
@@ -171,7 +171,7 @@ function show_list_sending_receive($origin,$origin_id,$filter='')
$sql.= " ORDER BY obj.fk_product";
- dol_syslog("show_list_sending_receive sql=".$sql, LOG_DEBUG);
+ dol_syslog("show_list_sending_receive", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/lib/tax.lib.php b/htdocs/core/lib/tax.lib.php
index a52aeb37345..164d346ac1c 100644
--- a/htdocs/core/lib/tax.lib.php
+++ b/htdocs/core/lib/tax.lib.php
@@ -194,7 +194,7 @@ function vat_by_thirdparty($db, $y, $date_start, $date_end, $modetax, $direction
if ($sql == 'TODO') return -2;
if ($sql != 'TODO')
{
- dol_syslog("Tax.lib:thirdparty sql=".$sql);
+ dol_syslog("Tax.lib:thirdparty", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
@@ -366,7 +366,7 @@ function vat_by_date($db, $y, $q, $date_start, $date_end, $modetax, $direction,
if ($sql == 'TODO') return -2;
if ($sql != 'TODO')
{
- dol_syslog("Tax.lib.php::vat_by_date sql=".$sql);
+ dol_syslog("Tax.lib.php::vat_by_date", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
@@ -531,7 +531,7 @@ function vat_by_date($db, $y, $q, $date_start, $date_end, $modetax, $direction,
if ($sql == 'TODO') return -2; // -2 = Feature not yet available
if ($sql != 'TODO')
{
- dol_syslog("Tax.lib.php::vat_by_date sql=".$sql);
+ dol_syslog("Tax.lib.php::vat_by_date", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/login/functions_dolibarr.php b/htdocs/core/login/functions_dolibarr.php
index 400b5765719..d1555678313 100644
--- a/htdocs/core/login/functions_dolibarr.php
+++ b/htdocs/core/login/functions_dolibarr.php
@@ -58,7 +58,7 @@ function check_user_password_dolibarr($usertotest,$passwordtotest,$entitytotest=
$sql.=' WHERE '.$usernamecol." = '".$db->escape($usertotest)."'";
$sql.=' AND '.$entitycol." IN (0," . ($entity ? $entity : 1) . ")";
- dol_syslog("functions_dolibarr::check_user_password_dolibarr sql=".$sql);
+ dol_syslog("functions_dolibarr::check_user_password_dolibarr", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/login/functions_openid.php b/htdocs/core/login/functions_openid.php
index e183bc40795..3abb69be4f2 100644
--- a/htdocs/core/login/functions_openid.php
+++ b/htdocs/core/login/functions_openid.php
@@ -79,7 +79,7 @@ function check_user_password_openid($usertotest,$passwordtotest,$entitytotest)
$sql.=" WHERE openid = '".$db->escape($_GET['openid_identity'])."'";
$sql.=" AND entity IN (0," . ($_SESSION["dol_entity"] ? $_SESSION["dol_entity"] : 1) . ")";
- dol_syslog("functions_openid::check_user_password_openid sql=".$sql);
+ dol_syslog("functions_openid::check_user_password_openid", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php
index e25f4d0c715..9809c418f0c 100644
--- a/htdocs/core/modules/DolibarrModules.class.php
+++ b/htdocs/core/modules/DolibarrModules.class.php
@@ -113,7 +113,7 @@ abstract class DolibarrModules
// Add current entity id
$sql=str_replace('__ENTITY__', $conf->entity, $sql);
- dol_syslog(get_class($this)."::_init ignoreerror=".$ignoreerror." sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::_init ignoreerror=".$ignoreerror."", LOG_DEBUG);
$result=$this->db->query($sql, $ignoreerror);
if (! $result)
{
@@ -373,7 +373,7 @@ abstract class DolibarrModules
$sql.= " WHERE ".$this->db->decrypt('name')." = '".$this->const_name."'";
$sql.= " AND entity IN (0, ".$entity.")";
- dol_syslog(get_class($this)."::_active sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::_active", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) $err++;
@@ -382,7 +382,7 @@ abstract class DolibarrModules
$sql.= ",".$this->db->encrypt('1',1);
$sql.= ",0,".$entity.")";
- dol_syslog(get_class($this)."::_active sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::_active", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) $err++;
@@ -408,7 +408,7 @@ abstract class DolibarrModules
$sql.= " WHERE ".$this->db->decrypt('name')." = '".$this->const_name."'";
$sql.= " AND entity IN (0, ".$entity.")";
- dol_syslog(get_class($this)."::_unactive sql=".$sql);
+ dol_syslog(get_class($this)."::_unactive", LOG_DEBUG);
$this->db->query($sql);
return $err;
@@ -540,7 +540,7 @@ abstract class DolibarrModules
$sql.= " AND entity = ".$conf->entity;
if ($note) $sql.=" AND note ='".$this->db->escape($note)."'";
- dol_syslog(get_class($this)."::insert_boxes sql=".$sql);
+ dol_syslog(get_class($this)."::insert_boxes", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -557,7 +557,7 @@ abstract class DolibarrModules
$sql.= $note?"'".$this->db->escape($note)."'":"null";
$sql.= ")";
- dol_syslog(get_class($this)."::insert_boxes sql=".$sql);
+ dol_syslog(get_class($this)."::insert_boxes", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) $err++;
@@ -575,7 +575,7 @@ abstract class DolibarrModules
$sql = "INSERT INTO ".MAIN_DB_PREFIX."boxes (box_id,position,box_order,fk_user,entity)";
$sql.= " VALUES (".$lastid.", ".$key2.", '0', 0, ".$conf->entity.")";
- dol_syslog(get_class($this)."::insert_boxes onto page ".$key2."=".$val2." sql=".$sql);
+ dol_syslog(get_class($this)."::insert_boxes onto page ".$key2."=".$val2."", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) $err++;
}
@@ -634,7 +634,7 @@ abstract class DolibarrModules
$sql.= " AND ".MAIN_DB_PREFIX."boxes_def.file = '".$this->db->escape($file)."'";
$sql.= " AND ".MAIN_DB_PREFIX."boxes.entity = ".$conf->entity;
- dol_syslog(get_class($this)."::delete_boxes sql=".$sql);
+ dol_syslog(get_class($this)."::delete_boxes", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -647,7 +647,7 @@ abstract class DolibarrModules
$sql.= " WHERE file = '".$this->db->escape($file)."'";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::delete_boxes sql=".$sql);
+ dol_syslog(get_class($this)."::delete_boxes", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -676,7 +676,7 @@ abstract class DolibarrModules
$sql.= " WHERE ".$this->db->decrypt('name')." like '".$this->const_name."_TABS_%'";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::delete_tabs sql=".$sql);
+ dol_syslog(get_class($this)."::delete_tabs", LOG_DEBUG);
if (! $this->db->query($sql))
{
$this->error=$this->db->lasterror();
@@ -722,7 +722,7 @@ abstract class DolibarrModules
$sql.= ", ".$conf->entity;
$sql.= ")";
- dol_syslog(get_class($this)."::insert_tabs sql=".$sql);
+ dol_syslog(get_class($this)."::insert_tabs", LOG_DEBUG);
$resql=$this->db->query($sql);
/* Allow duplicate key
if (! $resql)
@@ -784,7 +784,7 @@ abstract class DolibarrModules
$sql.= ")";
- dol_syslog(get_class($this)."::insert_const sql=".$sql);
+ dol_syslog(get_class($this)."::insert_const", LOG_DEBUG);
if (! $this->db->query($sql) )
{
dol_syslog(get_class($this)."::insert_const ".$this->db->lasterror(), LOG_ERR);
@@ -826,7 +826,7 @@ abstract class DolibarrModules
$sql = "DELETE FROM ".MAIN_DB_PREFIX."const";
$sql.= " WHERE ".$this->db->decrypt('name')." = '".$name."'";
$sql.= " AND entity in (0, ".$conf->entity.")";
- dol_syslog(get_class($this)."::delete_const sql=".$sql);
+ dol_syslog(get_class($this)."::delete_const", LOG_DEBUG);
if (! $this->db->query($sql))
{
$this->error=$this->db->lasterror();
@@ -904,7 +904,7 @@ abstract class DolibarrModules
$sql .= "(".$r_id.",".$entity.",'".$this->db->escape($r_desc)."','".$r_modul."','".$r_type."',".$r_def.")";
}
- dol_syslog(get_class($this)."::insert_permissions sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::insert_permissions", LOG_DEBUG);
$resqlinsert=$this->db->query($sql,1);
if (! $resqlinsert)
{
@@ -927,7 +927,7 @@ abstract class DolibarrModules
require DOL_DOCUMENT_ROOT.'/user/class/user.class.php';
}
$sql="SELECT rowid FROM ".MAIN_DB_PREFIX."user WHERE admin = 1";
- dol_syslog(get_class($this)."::insert_permissions Search all admin users sql=".$sql);
+ dol_syslog(get_class($this)."::insert_permissions Search all admin users", LOG_DEBUG);
$resqlseladmin=$this->db->query($sql,1);
if ($resqlseladmin)
{
@@ -982,7 +982,7 @@ abstract class DolibarrModules
$sql = "DELETE FROM ".MAIN_DB_PREFIX."rights_def";
$sql.= " WHERE module = '".$this->rights_class."'";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::delete_permissions sql=".$sql);
+ dol_syslog(get_class($this)."::delete_permissions", LOG_DEBUG);
if (! $this->db->query($sql))
{
$this->error=$this->db->lasterror();
@@ -1113,7 +1113,7 @@ abstract class DolibarrModules
$sql.= " WHERE module = '".$this->db->escape($this->rights_class)."'";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::delete_menus sql=".$sql);
+ dol_syslog(get_class($this)."::delete_menus", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -1201,7 +1201,7 @@ abstract class DolibarrModules
$sql.= " WHERE ".$this->db->decrypt('name')." = '".$name."'";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::insert_dirs sql=".$sql);
+ dol_syslog(get_class($this)."::insert_dirs", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -1212,7 +1212,7 @@ abstract class DolibarrModules
$sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,type,value,note,visible,entity)";
$sql.= " VALUES (".$this->db->encrypt($name,1).",'chaine',".$this->db->encrypt($dir,1).",'Directory for module ".$this->name."','0',".$conf->entity.")";
- dol_syslog(get_class($this)."::insert_dirs sql=".$sql);
+ dol_syslog(get_class($this)."::insert_dirs", LOG_DEBUG);
$resql=$this->db->query($sql);
}
}
@@ -1242,7 +1242,7 @@ abstract class DolibarrModules
$sql.= " WHERE ".$this->db->decrypt('name')." LIKE '".$this->const_name."_DIR_%'";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::delete_dirs sql=".$sql);
+ dol_syslog(get_class($this)."::delete_dirs", LOG_DEBUG);
if (! $this->db->query($sql))
{
$this->error=$this->db->lasterror();
@@ -1319,7 +1319,7 @@ abstract class DolibarrModules
$sql.= ", ".$entity;
$sql.= ")";
- dol_syslog(get_class($this)."::insert_const_".$key." sql=".$sql);
+ dol_syslog(get_class($this)."::insert_const_".$key."", LOG_DEBUG);
$resql=$this->db->query($sql,1);
if (! $resql)
{
@@ -1362,7 +1362,7 @@ abstract class DolibarrModules
$sql.= " WHERE ".$this->db->decrypt('name')." LIKE '".$this->const_name."_".strtoupper($key)."'";
$sql.= " AND entity = ".$entity;
- dol_syslog(get_class($this)."::delete_const_".$key." sql=".$sql);
+ dol_syslog(get_class($this)."::delete_const_".$key."", LOG_DEBUG);
if (! $this->db->query($sql))
{
$this->error=$this->db->lasterror();
diff --git a/htdocs/core/modules/action/rapport.pdf.php b/htdocs/core/modules/action/rapport.pdf.php
index b864205f2c9..7b539f92494 100644
--- a/htdocs/core/modules/action/rapport.pdf.php
+++ b/htdocs/core/modules/action/rapport.pdf.php
@@ -186,7 +186,7 @@ class CommActionRapport
$sql.= " AND '".$this->db->idate(dol_get_last_day($this->year,$this->month,false))."'";
$sql.= " ORDER BY a.datep DESC";
- dol_syslog(get_class($this)."::_page sql=".$sql);
+ dol_syslog(get_class($this)."::_page", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/modules/commande/mod_commande_marbre.php b/htdocs/core/modules/commande/mod_commande_marbre.php
index 8075099cdd6..92c8f55581c 100644
--- a/htdocs/core/modules/commande/mod_commande_marbre.php
+++ b/htdocs/core/modules/commande/mod_commande_marbre.php
@@ -119,7 +119,7 @@ class mod_commande_marbre extends ModeleNumRefCommandes
}
else
{
- dol_syslog("mod_commande_marbre::getNextValue sql=".$sql);
+ dol_syslog("mod_commande_marbre::getNextValue", LOG_DEBUG);
return -1;
}
diff --git a/htdocs/core/modules/contract/mod_contract_serpis.php b/htdocs/core/modules/contract/mod_contract_serpis.php
index a07f3261133..61ca01ae419 100644
--- a/htdocs/core/modules/contract/mod_contract_serpis.php
+++ b/htdocs/core/modules/contract/mod_contract_serpis.php
@@ -116,7 +116,7 @@ class mod_contract_serpis extends ModelNumRefContracts
}
else
{
- dol_syslog("mod_contract_serpis::getNextValue sql=".$sql);
+ dol_syslog("mod_contract_serpis::getNextValue", LOG_DEBUG);
return -1;
}
diff --git a/htdocs/core/modules/expedition/mod_expedition_safor.php b/htdocs/core/modules/expedition/mod_expedition_safor.php
index ba779658051..581657c6547 100644
--- a/htdocs/core/modules/expedition/mod_expedition_safor.php
+++ b/htdocs/core/modules/expedition/mod_expedition_safor.php
@@ -116,7 +116,7 @@ class mod_expedition_safor extends ModelNumRefExpedition
}
else
{
- dol_syslog("mod_expedition_safor::getNextValue sql=".$sql);
+ dol_syslog("mod_expedition_safor::getNextValue", LOG_DEBUG);
return -1;
}
diff --git a/htdocs/core/modules/facture/mod_facture_mars.php b/htdocs/core/modules/facture/mod_facture_mars.php
index f1a46913e25..100b9193fd5 100644
--- a/htdocs/core/modules/facture/mod_facture_mars.php
+++ b/htdocs/core/modules/facture/mod_facture_mars.php
@@ -144,7 +144,7 @@ class mod_facture_mars extends ModeleNumRefFactures
$sql.= " AND entity = ".$conf->entity;
$resql=$db->query($sql);
- dol_syslog(get_class($this)."::getNextValue sql=".$sql);
+ dol_syslog(get_class($this)."::getNextValue", LOG_DEBUG);
if ($resql)
{
$obj = $db->fetch_object($resql);
@@ -168,7 +168,7 @@ class mod_facture_mars extends ModeleNumRefFactures
$sql.= " WHERE facnumber LIKE '".$prefix."____-".$num."'";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::getNextValue sql=".$sql);
+ dol_syslog(get_class($this)."::getNextValue", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/modules/facture/mod_facture_terre.php b/htdocs/core/modules/facture/mod_facture_terre.php
index 9a8b5feaed7..6270bb9ae9c 100644
--- a/htdocs/core/modules/facture/mod_facture_terre.php
+++ b/htdocs/core/modules/facture/mod_facture_terre.php
@@ -160,7 +160,7 @@ class mod_facture_terre extends ModeleNumRefFactures
$sql.= " AND entity = ".$conf->entity;
$resql=$db->query($sql);
- dol_syslog(get_class($this)."::getNextValue sql=".$sql);
+ dol_syslog(get_class($this)."::getNextValue", LOG_DEBUG);
if ($resql)
{
$obj = $db->fetch_object($resql);
@@ -184,7 +184,7 @@ class mod_facture_terre extends ModeleNumRefFactures
$sql.= " WHERE facnumber LIKE '".$prefix."____-".$num."'";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::getNextValue sql=".$sql);
+ dol_syslog(get_class($this)."::getNextValue", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/modules/import/import_csv.modules.php b/htdocs/core/modules/import/import_csv.modules.php
index e83f812e8c4..cd3d82576ff 100644
--- a/htdocs/core/modules/import/import_csv.modules.php
+++ b/htdocs/core/modules/import/import_csv.modules.php
@@ -621,7 +621,7 @@ class ImportCsv extends ModeleImports
}
if (! empty($objimport->array_import_tables_creator[0][$alias])) $sql.=', '.$user->id;
$sql.=')';
- dol_syslog("import_csv.modules sql=".$sql);
+ dol_syslog("import_csv.modules", LOG_DEBUG);
//print '> '.join(',',$arrayrecord);
//print 'sql='.$sql;
diff --git a/htdocs/core/modules/livraison/mod_livraison_jade.php b/htdocs/core/modules/livraison/mod_livraison_jade.php
index 77ca85f8e6c..e7cd8c926ac 100644
--- a/htdocs/core/modules/livraison/mod_livraison_jade.php
+++ b/htdocs/core/modules/livraison/mod_livraison_jade.php
@@ -118,7 +118,7 @@ class mod_livraison_jade extends ModeleNumRefDeliveryOrder
$sql.= " AND entity = ".$conf->entity;
$resql=$db->query($sql);
- dol_syslog("mod_livraison_jade::getNextValue sql=".$sql);
+ dol_syslog("mod_livraison_jade::getNextValue", LOG_DEBUG);
if ($resql)
{
$obj = $db->fetch_object($resql);
diff --git a/htdocs/core/modules/mailings/fraise.modules.php b/htdocs/core/modules/mailings/fraise.modules.php
index 0e79a1f6e91..a9df6300f80 100644
--- a/htdocs/core/modules/mailings/fraise.modules.php
+++ b/htdocs/core/modules/mailings/fraise.modules.php
@@ -180,7 +180,7 @@ class mailing_fraise extends MailingTargets
//print $sql;
// Add targets into table
- dol_syslog(get_class($this)."::add_to_target sql=".$sql);
+ dol_syslog(get_class($this)."::add_to_target", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
diff --git a/htdocs/core/modules/project/mod_project_simple.php b/htdocs/core/modules/project/mod_project_simple.php
index da1c914f484..17ae9f29ddf 100644
--- a/htdocs/core/modules/project/mod_project_simple.php
+++ b/htdocs/core/modules/project/mod_project_simple.php
@@ -122,7 +122,7 @@ class mod_project_simple extends ModeleNumRefProjects
}
else
{
- dol_syslog("mod_project_simple::getNextValue sql=".$sql);
+ dol_syslog("mod_project_simple::getNextValue", LOG_DEBUG);
return -1;
}
diff --git a/htdocs/core/modules/project/task/mod_task_simple.php b/htdocs/core/modules/project/task/mod_task_simple.php
index afc17d663c0..eb8928d3b8f 100644
--- a/htdocs/core/modules/project/task/mod_task_simple.php
+++ b/htdocs/core/modules/project/task/mod_task_simple.php
@@ -122,7 +122,7 @@ class mod_task_simple extends ModeleNumRefTask
}
else
{
- dol_syslog("mod_task_simple::getNextValue sql=".$sql);
+ dol_syslog("mod_task_simple::getNextValue", LOG_DEBUG);
return -1;
}
diff --git a/htdocs/core/modules/propale/mod_propale_marbre.php b/htdocs/core/modules/propale/mod_propale_marbre.php
index aa2959691e6..ff38bc5f9cb 100644
--- a/htdocs/core/modules/propale/mod_propale_marbre.php
+++ b/htdocs/core/modules/propale/mod_propale_marbre.php
@@ -124,7 +124,7 @@ class mod_propale_marbre extends ModeleNumRefPropales
}
else
{
- dol_syslog("mod_propale_marbre::getNextValue sql=".$sql);
+ dol_syslog("mod_propale_marbre::getNextValue", LOG_DEBUG);
return -1;
}
diff --git a/htdocs/core/modules/rapport/pdf_paiement.class.php b/htdocs/core/modules/rapport/pdf_paiement.class.php
index d0defd260dd..78e8998f7d6 100644
--- a/htdocs/core/modules/rapport/pdf_paiement.class.php
+++ b/htdocs/core/modules/rapport/pdf_paiement.class.php
@@ -156,7 +156,7 @@ class pdf_paiement
if (! empty($socid)) $sql .= " AND s.rowid = ".$socid;
$sql.= " ORDER BY p.datep ASC, pf.fk_paiement ASC";
- dol_syslog(get_class($this)."::write_file sql=".$sql);
+ dol_syslog(get_class($this)."::write_file", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
diff --git a/htdocs/core/modules/societe/mod_codeclient_monkey.php b/htdocs/core/modules/societe/mod_codeclient_monkey.php
index 8b31e581e26..8e2baa28c9f 100644
--- a/htdocs/core/modules/societe/mod_codeclient_monkey.php
+++ b/htdocs/core/modules/societe/mod_codeclient_monkey.php
@@ -225,7 +225,7 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
$sql.= " AND entity IN (".getEntity('societe', 1).")";
if ($soc->id > 0) $sql.= " AND rowid <> ".$soc->id;
- dol_syslog(get_class($this)."::verif_dispo sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::verif_dispo", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
index 049c312e1ef..82961405825 100644
--- a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
+++ b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
@@ -118,7 +118,7 @@ class mod_facture_fournisseur_cactus extends ModeleNumRefSuppliersInvoices
$sql.= " AND entity = ".$conf->entity;
$resql=$db->query($sql);
- dol_syslog(get_class($this)."::getNextValue sql=".$sql);
+ dol_syslog(get_class($this)."::getNextValue", LOG_DEBUG);
if ($resql)
{
$obj = $db->fetch_object($resql);
@@ -142,7 +142,7 @@ class mod_facture_fournisseur_cactus extends ModeleNumRefSuppliersInvoices
$sql.= " WHERE ref LIKE '".$prefix."____-".$num."'";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::getNextValue sql=".$sql);
+ dol_syslog(get_class($this)."::getNextValue", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/core/triggers/interface_50_modNotification_Notification.class.php b/htdocs/core/triggers/interface_50_modNotification_Notification.class.php
index c035acac207..aff6e526b93 100644
--- a/htdocs/core/triggers/interface_50_modNotification_Notification.class.php
+++ b/htdocs/core/triggers/interface_50_modNotification_Notification.class.php
@@ -238,7 +238,7 @@ class InterfaceNotification
$sql = "SELECT rowid, code, label, description, elementtype";
$sql.= " FROM ".MAIN_DB_PREFIX."c_action_trigger";
$sql.= $this->db->order("elementtype, code");
- dol_syslog("Get list of notifications sql=".$sql);
+ dol_syslog("Get list of notifications", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/cron/class/cronjob.class.php b/htdocs/cron/class/cronjob.class.php
index f1fc788a198..8b9704cfb83 100644
--- a/htdocs/cron/class/cronjob.class.php
+++ b/htdocs/cron/class/cronjob.class.php
@@ -224,7 +224,7 @@ class Cronjob extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -309,7 +309,7 @@ class Cronjob extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."cronjob as t";
$sql.= " WHERE t.rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -429,7 +429,7 @@ class Cronjob extends CommonObject
$sql.= " WHERE ".implode(' AND ',$sqlwhere);
}
- dol_syslog(get_class($this)."::fetch_all sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch_all", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -609,7 +609,7 @@ class Cronjob extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -683,7 +683,7 @@ class Cronjob extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."cronjob";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
}
@@ -816,7 +816,7 @@ class Cronjob extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."cronjob as f";
$sql.= " WHERE f.rowid = ".$this->id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/ecm/class/ecmdirectory.class.php b/htdocs/ecm/class/ecmdirectory.class.php
index ea29d822102..d5b46b90c08 100644
--- a/htdocs/ecm/class/ecmdirectory.class.php
+++ b/htdocs/ecm/class/ecmdirectory.class.php
@@ -142,7 +142,7 @@ class EcmDirectory // extends CommonObject
$sql.= " '".$this->fk_user_c."'";
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -210,7 +210,7 @@ class EcmDirectory // extends CommonObject
$sql.= " description='".$this->db->escape($this->description)."'";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -257,7 +257,7 @@ class EcmDirectory // extends CommonObject
$sql.= " cachenbofdoc = cachenbofdoc ".$sign." 1";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::changeNbOfFiles sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::changeNbOfFiles", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -291,7 +291,7 @@ class EcmDirectory // extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."ecm_directories as t";
$sql.= " WHERE t.rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -348,7 +348,7 @@ class EcmDirectory // extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."ecm_directories";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
@@ -499,7 +499,7 @@ class EcmDirectory // extends CommonObject
$sql.= " WHERE fk_parent != 0";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::load_motherof sql=".$sql);
+ dol_syslog(get_class($this)."::load_motherof", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -563,7 +563,7 @@ class EcmDirectory // extends CommonObject
$sql.= " AND c.entity = ".$conf->entity;
$sql.= " ORDER BY c.label, c.rowid";
- dol_syslog(get_class($this)."::get_full_arbo sql=".$sql);
+ dol_syslog(get_class($this)."::get_full_arbo", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -688,7 +688,7 @@ class EcmDirectory // extends CommonObject
$sql.= " WHERE entity = ".$conf->entity;
}
- dol_syslog(get_class($this)."::refreshcachenboffile sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::refreshcachenboffile", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php
index 5cf09642c68..585fb9f8a88 100644
--- a/htdocs/expedition/class/expedition.class.php
+++ b/htdocs/expedition/class/expedition.class.php
@@ -227,7 +227,7 @@ class Expedition extends CommonObject
$sql.= ", ".(!empty($this->model_pdf)?"'".$this->db->escape($this->model_pdf)."'":"null");
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -237,7 +237,7 @@ class Expedition extends CommonObject
$sql.= " SET ref = '(PROV".$this->id.")'";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
if ($this->db->query($sql))
{
// Insertion des lignes
@@ -334,7 +334,7 @@ class Expedition extends CommonObject
$sql.= ", ".$qty;
$sql.= ")";
- dol_syslog(get_class($this)."::create_line sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create_line", LOG_DEBUG);
if (! $this->db->query($sql))
{
$error++;
@@ -399,7 +399,7 @@ class Expedition extends CommonObject
if ($ref_ext) $sql.= " AND e.ref_ext='".$this->db->escape($ref_ext)."'";
if ($ref_int) $sql.= " AND e.ref_int='".$this->db->escape($ref_int)."'";
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -545,7 +545,7 @@ class Expedition extends CommonObject
$sql.= ", fk_user_valid = ".$user->id;
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::valid update expedition sql=".$sql);
+ dol_syslog(get_class($this)."::valid update expedition", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -569,7 +569,7 @@ class Expedition extends CommonObject
$sql.= " WHERE ed.fk_expedition = ".$this->id;
$sql.= " AND cd.rowid = ed.fk_origin_line";
- dol_syslog(get_class($this)."::valid select details sql=".$sql);
+ dol_syslog(get_class($this)."::valid select details", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -846,7 +846,7 @@ class Expedition extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -922,7 +922,7 @@ class Expedition extends CommonObject
$sql.= " WHERE ed.fk_expedition = ".$this->id;
$sql.= " AND cd.rowid = ed.fk_origin_line";
- dol_syslog(get_class($this)."::delete select details sql=".$sql);
+ dol_syslog(get_class($this)."::delete select details", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1062,7 +1062,7 @@ class Expedition extends CommonObject
$sql.= " WHERE ed.fk_expedition = ".$this->id;
$sql.= " AND ed.fk_origin_line = cd.rowid";
- dol_syslog(get_class($this)."::fetch_lines sql=".$sql);
+ dol_syslog(get_class($this)."::fetch_lines", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1324,7 +1324,7 @@ class Expedition extends CommonObject
$sql.= " SET date_delivery = ".($date_livraison ? "'".$this->db->idate($date_livraison)."'" : 'null');
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::set_date_livraison sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::set_date_livraison", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/expedition/class/expeditionbatch.class.php b/htdocs/expedition/class/expeditionbatch.class.php
index 7bbd99706bd..a0a22fefdd6 100644
--- a/htdocs/expedition/class/expeditionbatch.class.php
+++ b/htdocs/expedition/class/expeditionbatch.class.php
@@ -69,7 +69,7 @@ class ExpeditionLigneBatch extends CommonObject
$sql.= MAIN_DB_PREFIX."product_stock as e on t.fk_product_stock=e.rowid ";
$sql.= " WHERE t.rowid = ".(int) $id_stockdluo;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -123,7 +123,7 @@ class ExpeditionLigneBatch extends CommonObject
$sql.= " ".(! isset($this->fk_origin_stock)?'NULL':$this->fk_origin_stock);
$sql.= ")";
- dol_syslog(__METHOD__ ." sql=".$sql, LOG_DEBUG);
+ dol_syslog(__METHOD__ ."", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -157,7 +157,7 @@ class ExpeditionLigneBatch extends CommonObject
$sql="DELETE FROM ".MAIN_DB_PREFIX.self::$_table_element;
$sql.=" WHERE fk_expeditiondet in (SELECT rowid FROM ".MAIN_DB_PREFIX."expeditiondet WHERE fk_expedition=".$id_expedition.")";
- dol_syslog(__METHOD__ ." sql=".$sql, LOG_DEBUG);
+ dol_syslog(__METHOD__ ."", LOG_DEBUG);
if ( $db->query($sql) )
{
return 1;
@@ -185,7 +185,7 @@ class ExpeditionLigneBatch extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX.self::$_table_element;
$sql.= " WHERE fk_expeditiondet=".(int) $id_line_expdet;
- dol_syslog(__METHOD__ ." sql=".$sql, LOG_DEBUG);
+ dol_syslog(__METHOD__ ."", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/expedition/shipment.php b/htdocs/expedition/shipment.php
index fce9c3bf6a5..d44a7d5f4a4 100644
--- a/htdocs/expedition/shipment.php
+++ b/htdocs/expedition/shipment.php
@@ -363,7 +363,7 @@ if ($id > 0 || ! empty($ref))
$sql.= " ORDER BY cd.rang, cd.rowid";
//print $sql;
- dol_syslog("shipment.php sql=".$sql, LOG_DEBUG);
+ dol_syslog("shipment.php", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
diff --git a/htdocs/exports/class/export.class.php b/htdocs/exports/class/export.class.php
index fda062952d1..3c7f9a14902 100644
--- a/htdocs/exports/class/export.class.php
+++ b/htdocs/exports/class/export.class.php
@@ -519,7 +519,7 @@ class Export
// Run the sql
$this->sqlusedforexport=$sql;
- dol_syslog(get_class($this)."::".__FUNCTION__." sql=".$sql);
+ dol_syslog(get_class($this)."::".__FUNCTION__."", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -628,7 +628,7 @@ class Export
$sql.= (! empty($filter)?"'".$filter."'":"null");
$sql.= ")";
- dol_syslog("Export::create sql=".$sql, LOG_DEBUG);
+ dol_syslog("Export::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -657,7 +657,7 @@ class Export
$sql.= ' FROM '.MAIN_DB_PREFIX.'export_model as em';
$sql.= ' WHERE em.rowid = '.$id;
- dol_syslog("Export::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog("Export::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -706,7 +706,7 @@ class Export
$this->db->begin();
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php
index 52585d29122..72d20443d8f 100644
--- a/htdocs/fichinter/class/fichinter.class.php
+++ b/htdocs/fichinter/class/fichinter.class.php
@@ -151,7 +151,7 @@ class Fichinter extends CommonObject
$sql.= ", ".($this->note_public?"'".$this->db->escape($this->note_public)."'":"null");
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -162,7 +162,7 @@ class Fichinter extends CommonObject
$this->ref='(PROV'.$this->id.')';
$sql = 'UPDATE '.MAIN_DB_PREFIX."fichinter SET ref='".$this->ref."' WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) $error++;
}
@@ -234,7 +234,7 @@ class Fichinter extends CommonObject
$sql.= ", note_public = ".($this->note_public?"'".$this->db->escape($this->note_public)."'":"null");
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
if ($this->db->query($sql))
{
@@ -280,7 +280,7 @@ class Fichinter extends CommonObject
if ($ref) $sql.= " WHERE f.ref='".$this->db->escape($ref)."'";
else $sql.= " WHERE f.rowid=".$rowid;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -350,7 +350,7 @@ class Fichinter extends CommonObject
$sql.= " WHERE rowid = ".$this->id;
$sql.= " AND entity = ".$conf->entity;
- dol_syslog("Fichinter::setDraft sql=".$sql);
+ dol_syslog("Fichinter::setDraft", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -405,7 +405,7 @@ class Fichinter extends CommonObject
$sql.= " AND entity = ".$conf->entity;
$sql.= " AND fk_statut = 0";
- dol_syslog(get_class($this)."::setValid sql=".$sql);
+ dol_syslog(get_class($this)."::setValid", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -723,14 +723,14 @@ class Fichinter extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."fichinterdet";
$sql.= " WHERE fk_fichinter = ".$this->id;
- dol_syslog("Fichinter::delete sql=".$sql);
+ dol_syslog("Fichinter::delete", LOG_DEBUG);
if ( $this->db->query($sql) )
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."fichinter";
$sql.= " WHERE rowid = ".$this->id;
$sql.= " AND entity = ".$conf->entity;
- dol_syslog("Fichinter::delete sql=".$sql);
+ dol_syslog("Fichinter::delete", LOG_DEBUG);
if ( $this->db->query($sql) )
{
@@ -982,7 +982,7 @@ class Fichinter extends CommonObject
$sql.= ' FROM '.MAIN_DB_PREFIX.'fichinterdet';
$sql.= ' WHERE fk_fichinter = '.$this->id;
- dol_syslog(get_class($this)."::fetch_lines sql=".$sql);
+ dol_syslog(get_class($this)."::fetch_lines", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1057,7 +1057,7 @@ class FichinterLigne
$sql.= ' FROM '.MAIN_DB_PREFIX.'fichinterdet as ft';
$sql.= ' WHERE ft.rowid = '.$rowid;
- dol_syslog("FichinterLigne::fetch sql=".$sql);
+ dol_syslog("FichinterLigne::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -1125,7 +1125,7 @@ class FichinterLigne
$sql.= ' '.$rangToUse;
$sql.= ')';
- dol_syslog("FichinterLigne::insert sql=".$sql);
+ dol_syslog("FichinterLigne::insert", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1188,7 +1188,7 @@ class FichinterLigne
$sql.= ",rang='".$this->rang."'";
$sql.= " WHERE rowid = ".$this->rowid;
- dol_syslog("FichinterLigne::update sql=".$sql);
+ dol_syslog("FichinterLigne::update", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1246,7 +1246,7 @@ class FichinterLigne
$sql.= " FROM ".MAIN_DB_PREFIX."fichinterdet";
$sql.= " WHERE fk_fichinter=".$this->fk_fichinter;
- dol_syslog("FichinterLigne::update_total sql=".$sql);
+ dol_syslog("FichinterLigne::update_total", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1259,7 +1259,7 @@ class FichinterLigne
$sql.= " WHERE rowid = ".$this->fk_fichinter;
$sql.= " AND entity = ".$conf->entity;
- dol_syslog("FichinterLigne::update_total sql=".$sql);
+ dol_syslog("FichinterLigne::update_total", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1301,7 +1301,7 @@ class FichinterLigne
$sql = "DELETE FROM ".MAIN_DB_PREFIX."fichinterdet WHERE rowid = ".$this->rowid;
$resql = $this->db->query($sql);
- dol_syslog(get_class($this)."::deleteline sql=".$sql);
+ dol_syslog(get_class($this)."::deleteline", LOG_DEBUG);
if ($resql)
{
diff --git a/htdocs/fourn/ajax/getSupplierPrices.php b/htdocs/fourn/ajax/getSupplierPrices.php
index bbe3aeba4dc..fc891af53a3 100644
--- a/htdocs/fourn/ajax/getSupplierPrices.php
+++ b/htdocs/fourn/ajax/getSupplierPrices.php
@@ -58,7 +58,7 @@ if (! empty($idprod))
$sql.= " AND s.fournisseur = 1";
$sql.= " ORDER BY s.nom, pfp.ref_fourn DESC";
- dol_syslog("Ajax::getSupplierPrices sql=".$sql, LOG_DEBUG);
+ dol_syslog("Ajax::getSupplierPrices", LOG_DEBUG);
$result=$db->query($sql);
if ($result)
diff --git a/htdocs/fourn/class/fournisseur.class.php b/htdocs/fourn/class/fournisseur.class.php
index f557573fdfc..71942a27f97 100644
--- a/htdocs/fourn/class/fournisseur.class.php
+++ b/htdocs/fourn/class/fournisseur.class.php
@@ -157,7 +157,7 @@ class Fournisseur extends Societe
$sql.= " VALUES ";
$sql.= " ('".$this->db->escape($name)."',1,1)";
- dol_syslog("Fournisseur::CreateCategory sql=".$sql);
+ dol_syslog("Fournisseur::CreateCategory", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php
index 591fce671b1..a9b4a5b90b1 100644
--- a/htdocs/fourn/class/fournisseur.commande.class.php
+++ b/htdocs/fourn/class/fournisseur.commande.class.php
@@ -138,7 +138,7 @@ class CommandeFournisseur extends CommonOrder
if ($ref) $sql.= " AND c.ref='".$ref."'";
else $sql.= " AND c.rowid=".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -207,7 +207,7 @@ class CommandeFournisseur extends CommonOrder
$sql.= " ORDER BY l.rowid";
//print $sql;
- dol_syslog(get_class($this)."::fetch get lines sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch get lines", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -288,7 +288,7 @@ class CommandeFournisseur extends CommonOrder
$sql.= ($comment?"'".$this->db->escape($comment)."'":'null');
$sql.= ")";
- dol_syslog("FournisseurCommande::log sql=".$sql, LOG_DEBUG);
+ dol_syslog("FournisseurCommande::log", LOG_DEBUG);
if ( $this->db->query($sql) )
{
return 1;
@@ -756,7 +756,7 @@ class CommandeFournisseur extends CommonOrder
$sql = "UPDATE ".MAIN_DB_PREFIX."commande_fournisseur SET fk_statut = ".$statut;
$sql .= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::cancel sql=".$sql);
+ dol_syslog(get_class($this)."::cancel", LOG_DEBUG);
if ($this->db->query($sql))
{
$result = 0;
@@ -815,7 +815,7 @@ class CommandeFournisseur extends CommonOrder
$sql = "UPDATE ".MAIN_DB_PREFIX."commande_fournisseur SET fk_statut = 3, fk_input_method=".$methode.",date_commande=".$this->db->idate("$date");
$sql .= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::commande sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::commande", LOG_DEBUG);
if ($this->db->query($sql))
{
$result = 1;
@@ -889,7 +889,7 @@ class CommandeFournisseur extends CommonOrder
$sql.= ", ".($this->cond_reglement_id > 0 ? $this->cond_reglement_id : 'null');
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
if ($this->db->query($sql))
{
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."commande_fournisseur");
@@ -928,7 +928,7 @@ class CommandeFournisseur extends CommonOrder
$sql = "UPDATE ".MAIN_DB_PREFIX."commande_fournisseur";
$sql.= " SET ref='(PROV".$this->id.")'";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
if ($this->db->query($sql))
{
// On logue creation pour historique
@@ -1198,7 +1198,7 @@ class CommandeFournisseur extends CommonOrder
$sql.= "'".price2num($total_ttc)."'";
$sql.= ")";
- dol_syslog(get_class($this)."::addline sql=".$sql);
+ dol_syslog(get_class($this)."::addline", LOG_DEBUG);
$resql=$this->db->query($sql);
//print $sql;
if ($resql)
@@ -1269,7 +1269,7 @@ class CommandeFournisseur extends CommonOrder
$sql.= " (fk_commande,fk_product, qty, fk_entrepot, fk_user, datec) VALUES ";
$sql.= " ('".$this->id."','".$product."','".$qty."',".($entrepot>0?"'".$entrepot."'":"null").",'".$user->id."','".$this->db->idate($now)."')";
- dol_syslog(get_class($this)."::DispatchProduct sql=".$sql);
+ dol_syslog(get_class($this)."::DispatchProduct", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1342,7 +1342,7 @@ class CommandeFournisseur extends CommonOrder
$sql = "DELETE FROM ".MAIN_DB_PREFIX."commande_fournisseurdet WHERE rowid = ".$idline;
$resql=$this->db->query($sql);
- dol_syslog(get_class($this)."::deleteline sql=".$sql);
+ dol_syslog(get_class($this)."::deleteline", LOG_DEBUG);
if (!$notrigger && $resql)
{
@@ -1390,14 +1390,14 @@ class CommandeFournisseur extends CommonOrder
$this->db->begin();
$sql = "DELETE FROM ".MAIN_DB_PREFIX."commande_fournisseurdet WHERE fk_commande =". $this->id ;
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
if (! $this->db->query($sql) )
{
$error++;
}
$sql = "DELETE FROM ".MAIN_DB_PREFIX."commande_fournisseur WHERE rowid =".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
if ($resql = $this->db->query($sql) )
{
if ($this->db->affected_rows($resql) < 1)
@@ -1540,7 +1540,7 @@ class CommandeFournisseur extends CommonOrder
$sql.= " WHERE rowid = ".$this->id;
$sql.= " AND fk_statut IN (3,4)"; // Process running or Partially received
- dol_syslog(get_class($this)."::Livraison sql=".$sql);
+ dol_syslog(get_class($this)."::Livraison", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1586,7 +1586,7 @@ class CommandeFournisseur extends CommonOrder
$sql.= " SET date_livraison = ".($date_livraison ? "'".$this->db->idate($date_livraison)."'" : 'null');
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::set_date_livraison sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::set_date_livraison", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1666,7 +1666,7 @@ class CommandeFournisseur extends CommonOrder
$sql.= ' SET fk_statut='.$status;
$sql.= ' WHERE rowid = '.$this->id;
- dol_syslog(get_class($this)."::setStatus sql=".$sql);
+ dol_syslog(get_class($this)."::setStatus", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1781,7 +1781,7 @@ class CommandeFournisseur extends CommonOrder
$sql.= ",product_type=".$type;
$sql.= " WHERE rowid = ".$rowid;
- dol_syslog(get_class($this)."::updateline sql=".$sql);
+ dol_syslog(get_class($this)."::updateline", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result > 0)
{
diff --git a/htdocs/fourn/class/fournisseur.facture.class.php b/htdocs/fourn/class/fournisseur.facture.class.php
index a9619a33902..a5eb09f43f7 100644
--- a/htdocs/fourn/class/fournisseur.facture.class.php
+++ b/htdocs/fourn/class/fournisseur.facture.class.php
@@ -196,7 +196,7 @@ class FactureFournisseur extends CommonInvoice
$sql.= $this->date_echeance!=''?"'".$this->db->idate($this->date_echeance)."'":"null";
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -206,7 +206,7 @@ class FactureFournisseur extends CommonInvoice
$this->ref='(PROV'.$this->id.')';
$sql = 'UPDATE '.MAIN_DB_PREFIX."facture_fourn SET ref='".$this->ref."' WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) $error++;
@@ -226,7 +226,7 @@ class FactureFournisseur extends CommonInvoice
$sql = 'INSERT INTO '.MAIN_DB_PREFIX.'facture_fourn_det (fk_facture_fourn)';
$sql .= ' VALUES ('.$this->id.');';
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql_insert=$this->db->query($sql);
if ($resql_insert)
{
@@ -350,7 +350,7 @@ class FactureFournisseur extends CommonInvoice
if ($id) $sql.= " WHERE t.rowid=".$id;
if ($ref) $sql.= " WHERE t.ref='".$this->db->escape($ref)."'";
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -453,7 +453,7 @@ class FactureFournisseur extends CommonInvoice
$sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'product as p ON f.fk_product = p.rowid';
$sql.= ' WHERE fk_facture_fourn='.$this->id;
- dol_syslog(get_class($this)."::fetch_lines sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch_lines", LOG_DEBUG);
$resql_rows = $this->db->query($sql);
if ($resql_rows)
{
@@ -591,7 +591,7 @@ class FactureFournisseur extends CommonInvoice
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -647,12 +647,12 @@ class FactureFournisseur extends CommonInvoice
$this->db->begin();
$sql = 'DELETE FROM '.MAIN_DB_PREFIX.'facture_fourn_det WHERE fk_facture_fourn = '.$rowid.';';
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
$sql = 'DELETE FROM '.MAIN_DB_PREFIX.'facture_fourn WHERE rowid = '.$rowid;
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql2 = $this->db->query($sql);
if (! $resql2) {
$error++;
@@ -763,7 +763,7 @@ class FactureFournisseur extends CommonInvoice
$sql.= ' SET paye = 1, fk_statut=2';
$sql.= ' WHERE rowid = '.$this->id;
- dol_syslog("FactureFournisseur::set_paid sql=".$sql);
+ dol_syslog("FactureFournisseur::set_paid", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -813,7 +813,7 @@ class FactureFournisseur extends CommonInvoice
$sql.= ' SET paye=0, fk_statut=1, close_code=null, close_note=null';
$sql.= ' WHERE rowid = '.$this->id;
- dol_syslog("FactureFournisseur::set_unpaid sql=".$sql);
+ dol_syslog("FactureFournisseur::set_unpaid", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -891,7 +891,7 @@ class FactureFournisseur extends CommonInvoice
$sql.= " SET ref='".$num."', fk_statut = 1, fk_user_valid = ".$user->id;
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::validate sql=".$sql);
+ dol_syslog(get_class($this)."::validate", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1011,7 +1011,7 @@ class FactureFournisseur extends CommonInvoice
$sql.= " SET fk_statut = 0";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::set_draft sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::set_draft", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -1110,7 +1110,7 @@ class FactureFournisseur extends CommonInvoice
$sql = 'INSERT INTO '.MAIN_DB_PREFIX.'facture_fourn_det (fk_facture_fourn)';
$sql.= ' VALUES ('.$this->id.')';
- dol_syslog(get_class($this)."::addline sql=".$sql);
+ dol_syslog(get_class($this)."::addline", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
@@ -1241,7 +1241,7 @@ class FactureFournisseur extends CommonInvoice
$sql.= ", info_bits = ".$info_bits;
$sql.= " WHERE rowid = ".$id;
- dol_syslog(get_class($this)."::updateline sql=".$sql);
+ dol_syslog(get_class($this)."::updateline", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1306,7 +1306,7 @@ class FactureFournisseur extends CommonInvoice
// Supprime ligne
$sql = 'DELETE FROM '.MAIN_DB_PREFIX.'facture_fourn_det ';
$sql.= ' WHERE rowid = '.$rowid;
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql)
{
diff --git a/htdocs/fourn/class/fournisseur.product.class.php b/htdocs/fourn/class/fournisseur.product.class.php
index b642926f802..d72291c6038 100644
--- a/htdocs/fourn/class/fournisseur.product.class.php
+++ b/htdocs/fourn/class/fournisseur.product.class.php
@@ -83,7 +83,7 @@ class ProductFournisseur extends Product
$sql = "DELETE FROM ".MAIN_DB_PREFIX."product_fournisseur_price";
$sql.= " WHERE fk_product = ".$this->id." AND fk_soc = ".$id_fourn;
- dol_syslog(get_class($this)."::remove_fournisseur sql=".$sql);
+ dol_syslog(get_class($this)."::remove_fournisseur", LOG_DEBUG);
$resql2=$this->db->query($sql);
if (! $resql2)
{
@@ -120,7 +120,7 @@ class ProductFournisseur extends Product
$sql = "DELETE FROM ".MAIN_DB_PREFIX."product_fournisseur_price";
$sql.= " WHERE rowid = ".$rowid;
- dol_syslog(get_class($this)."::remove_product_fournisseur_price sql=".$sql);
+ dol_syslog(get_class($this)."::remove_product_fournisseur_price", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -263,7 +263,7 @@ class ProductFournisseur extends Product
$sql.= $conf->entity;
$sql.=")";
- dol_syslog(get_class($this)."::update_buyprice sql=".$sql);
+ dol_syslog(get_class($this)."::update_buyprice", LOG_DEBUG);
if (! $this->db->query($sql))
{
$error++;
@@ -340,7 +340,7 @@ class ProductFournisseur extends Product
$sql.= " FROM ".MAIN_DB_PREFIX."product_fournisseur_price as pfp";
$sql.= " WHERE pfp.rowid = ".$rowid;
- dol_syslog(get_class($this)."::fetch_product_fournisseur_price sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch_product_fournisseur_price", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -399,7 +399,7 @@ class ProductFournisseur extends Product
$sql.= " AND pfp.fk_product = ".$prodid;
if (empty($sortfield)) $sql.= " ORDER BY s.nom, pfp.quantity, pfp.price";
else $sql.= $this->db->order($sortfield,$sortorder);
- dol_syslog(get_class($this)."::list_product_fournisseur_price sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::list_product_fournisseur_price", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
@@ -488,7 +488,7 @@ class ProductFournisseur extends Product
$sql.= " ORDER BY pfp.unitprice";
$sql.= $this->db->plimit(1);
- dol_syslog(get_class($this)."::find_min_price_product_fournisseur sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::find_min_price_product_fournisseur", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
diff --git a/htdocs/fourn/class/paiementfourn.class.php b/htdocs/fourn/class/paiementfourn.class.php
index 69912e77cb0..3daee072886 100644
--- a/htdocs/fourn/class/paiementfourn.class.php
+++ b/htdocs/fourn/class/paiementfourn.class.php
@@ -149,7 +149,7 @@ class PaiementFourn extends Paiement
$sql.= " VALUES ('".$this->db->idate($now)."',";
$sql.= " '".$this->db->idate($this->datepaye)."', '".$this->total."', ".$this->paiementid.", '".$this->num_paiement."', '".$this->db->escape($this->note)."', ".$user->id.", 0)";
- dol_syslog("PaiementFourn::create sql=".$sql);
+ dol_syslog("PaiementFourn::create", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/fourn/product/liste.php b/htdocs/fourn/product/liste.php
index ffd413cbf2f..ec186cd8339 100644
--- a/htdocs/fourn/product/liste.php
+++ b/htdocs/fourn/product/liste.php
@@ -121,7 +121,7 @@ if ($fourn_id > 0)
$sql .= " ORDER BY ".$sortfield." ".$sortorder;
$sql .= $db->plimit($limit + 1, $offset);
-dol_syslog("fourn/product/liste.php: sql=".$sql);
+dol_syslog("fourn/product/liste.php:", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
diff --git a/htdocs/ftp/admin/ftpclient.php b/htdocs/ftp/admin/ftpclient.php
index 1ff142f7be7..3e9d2bfd590 100644
--- a/htdocs/ftp/admin/ftpclient.php
+++ b/htdocs/ftp/admin/ftpclient.php
@@ -218,7 +218,7 @@ else
$sql.=" WHERE name like 'FTP_SERVER_%'";
$sql.=" ORDER BY name";
- dol_syslog("ftpclient select ftp setup sql=".$sql,LOG_DEBUG);
+ dol_syslog("ftpclient select ftp setup", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/holiday/class/holiday.class.php b/htdocs/holiday/class/holiday.class.php
index dfa0e0d9b32..995f33e62ff 100644
--- a/htdocs/holiday/class/holiday.class.php
+++ b/htdocs/holiday/class/holiday.class.php
@@ -137,7 +137,7 @@ class Holiday extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) {
$error++; $this->errors[]="Error ".$this->db->lasterror();
@@ -200,7 +200,7 @@ class Holiday extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."holiday as cp";
$sql.= " WHERE cp.rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -294,7 +294,7 @@ class Holiday extends CommonObject
$sql.= $order;
}
- dol_syslog(get_class($this)."::fetchByUser sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetchByUser", LOG_DEBUG);
$resql=$this->db->query($sql);
// Si pas d'erreur SQL
@@ -405,7 +405,7 @@ class Holiday extends CommonObject
$sql.= $order;
}
- dol_syslog(get_class($this)."::fetchAll sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetchAll", LOG_DEBUG);
$resql=$this->db->query($sql);
// Si pas d'erreur SQL
@@ -544,7 +544,7 @@ class Holiday extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) {
$error++; $this->errors[]="Error ".$this->db->lasterror();
@@ -591,7 +591,7 @@ class Holiday extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) {
$error++; $this->errors[]="Error ".$this->db->lasterror();
@@ -787,7 +787,7 @@ class Holiday extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."usergroup as u";
$sql.= " ORDER BY u.rowid";
- dol_syslog(get_class($this)."::selectUserGroup sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::selectUserGroup", LOG_DEBUG);
$result = $this->db->query($sql);
// Si pas d'erreur SQL
@@ -1071,7 +1071,7 @@ class Holiday extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."user as u";
$sql.= " WHERE statut > 0";
- dol_syslog(get_class($this)."::fetchUsers sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetchUsers", LOG_DEBUG);
$resql=$this->db->query($sql);
// Si pas d'erreur SQL
@@ -1109,7 +1109,7 @@ class Holiday extends CommonObject
$sql = "SELECT u.fk_user";
$sql.= " FROM ".MAIN_DB_PREFIX."holiday_users as u";
- dol_syslog(get_class($this)."::fetchUsers sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetchUsers", LOG_DEBUG);
$resql=$this->db->query($sql);
// Si pas d'erreur SQL
@@ -1153,7 +1153,7 @@ class Holiday extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."user as u";
$sql.= " WHERE statut > 0";
- dol_syslog(get_class($this)."::fetchUsers sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetchUsers", LOG_DEBUG);
$resql=$this->db->query($sql);
// Si pas d'erreur SQL
@@ -1193,7 +1193,7 @@ class Holiday extends CommonObject
$sql.= " ".MAIN_DB_PREFIX."user as u";
$sql.= " WHERE cpu.fk_user = u.rowid";
- dol_syslog(get_class($this)."::fetchUsers sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetchUsers", LOG_DEBUG);
$resql=$this->db->query($sql);
// Si pas d'erreur SQL
@@ -1369,7 +1369,7 @@ class Holiday extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."holiday_events as cpe";
- dol_syslog(get_class($this)."::fetchEventsCP sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetchEventsCP", LOG_DEBUG);
$resql=$this->db->query($sql);
// Si pas d'erreur SQL
@@ -1434,7 +1434,7 @@ class Holiday extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::createEventCP sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::createEventCP", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) {
$error++; $this->errors[]="Error ".$this->db->lasterror();
@@ -1627,7 +1627,7 @@ class Holiday extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::addLogCP sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::addLogCP", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) {
$error++; $this->errors[]="Error ".$this->db->lasterror();
@@ -1690,7 +1690,7 @@ class Holiday extends CommonObject
$sql.= $order;
}
- dol_syslog(get_class($this)."::fetchLog sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetchLog", LOG_DEBUG);
$resql=$this->db->query($sql);
// Si pas d'erreur SQL
diff --git a/htdocs/imports/class/import.class.php b/htdocs/imports/class/import.class.php
index b1fa3552d9a..ff23bc12cc8 100644
--- a/htdocs/imports/class/import.class.php
+++ b/htdocs/imports/class/import.class.php
@@ -233,7 +233,7 @@ class Import
$sql.= ')';
$sql.= " VALUES (".($user->id > 0 ? $user->id : 0).", '".$this->db->escape($this->model_name)."', '".$this->datatoimport."', '".$this->hexa."')";
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -262,7 +262,7 @@ class Import
$sql.= ' FROM '.MAIN_DB_PREFIX.'import_model as em';
$sql.= ' WHERE em.rowid = '.$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -306,7 +306,7 @@ class Import
$this->db->begin();
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
diff --git a/htdocs/install/upgrade.php b/htdocs/install/upgrade.php
index 9b15d36ffe9..875f5974dd7 100644
--- a/htdocs/install/upgrade.php
+++ b/htdocs/install/upgrade.php
@@ -203,7 +203,7 @@ if (! GETPOST("action") || preg_match('/upgrade/i',GETPOST('action')))
$filles=array();
$sql = "SELECT fk_categorie_mere, fk_categorie_fille";
$sql.= " FROM ".MAIN_DB_PREFIX."categorie_association";
- dolibarr_install_syslog("upgrade: search duplicate sql=".$sql);
+ dolibarr_install_syslog("upgrade: search duplicate", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
@@ -231,7 +231,7 @@ if (! GETPOST("action") || preg_match('/upgrade/i',GETPOST('action')))
// We delete all
$sql="DELETE FROM ".MAIN_DB_PREFIX."categorie_association";
- dolibarr_install_syslog("upgrade: delete association sql=".$sql);
+ dolibarr_install_syslog("upgrade: delete association", LOG_DEBUG);
$resqld=$db->query($sql);
if ($resqld)
{
@@ -240,7 +240,7 @@ if (! GETPOST("action") || preg_match('/upgrade/i',GETPOST('action')))
{
$sql ="INSERT INTO ".MAIN_DB_PREFIX."categorie_association(fk_categorie_mere,fk_categorie_fille)";
$sql.=" VALUES(".$val['mere'].", ".$val['fille'].")";
- dolibarr_install_syslog("upgrade: insert association sql=".$sql);
+ dolibarr_install_syslog("upgrade: insert association", LOG_DEBUG);
$resqli=$db->query($sql);
if (! $resqli) $error++;
}
diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php
index 736346d0f72..23c9c311650 100644
--- a/htdocs/install/upgrade2.php
+++ b/htdocs/install/upgrade2.php
@@ -413,7 +413,7 @@ function migrate_paiements($db,$langs,$conf)
$resql = $db->query($sql);
- dolibarr_install_syslog("upgrade2::migrate_paiements sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_paiements", LOG_DEBUG);
if ($resql)
{
$i = 0;
@@ -513,7 +513,7 @@ function migrate_paiements_orphelins_1($db,$langs,$conf)
$resql = $db->query($sql);
- dolibarr_install_syslog("upgrade2::migrate_paiements_orphelins_1 sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_paiements_orphelins_1", LOG_DEBUG);
$row = array();
if ($resql)
{
@@ -639,7 +639,7 @@ function migrate_paiements_orphelins_2($db,$langs,$conf)
$resql = $db->query($sql);
- dolibarr_install_syslog("upgrade2::migrate_paiements_orphelins_2 sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_paiements_orphelins_2", LOG_DEBUG);
$row = array();
if ($resql)
{
@@ -779,7 +779,7 @@ function migrate_contracts_det($db,$langs,$conf)
$sql.= " WHERE cd.rowid IS NULL AND p.rowid IS NOT NULL";
$resql = $db->query($sql);
- dolibarr_install_syslog("upgrade2::migrate_contracts_det sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_contracts_det", LOG_DEBUG);
if ($resql)
{
$i = 0;
@@ -875,7 +875,7 @@ function migrate_links_transfert($db,$langs,$conf)
$sql.= " AND bu.fk_bank IS NULL";
$resql = $db->query($sql);
- dolibarr_install_syslog("upgrade2::migrate_links_transfert sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_links_transfert", LOG_DEBUG);
if ($resql)
{
$i = 0;
@@ -899,7 +899,7 @@ function migrate_links_transfert($db,$langs,$conf)
$sql.= ")";
print $sql.'
';
- dolibarr_install_syslog("migrate_links_transfert sql=".$sql);
+ dolibarr_install_syslog("migrate_links_transfert", LOG_DEBUG);
if (! $db->query($sql))
{
@@ -950,7 +950,7 @@ function migrate_contracts_date1($db,$langs,$conf)
print ''.$langs->trans('MigrationContractsEmptyDatesUpdate')."
\n";
$sql="update llx_contrat set date_contrat=tms where date_contrat is null";
- dolibarr_install_syslog("upgrade2::migrate_contracts_date1 sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_contracts_date1", LOG_DEBUG);
$resql = $db->query($sql);
if (! $resql) dol_print_error($db);
if ($db->affected_rows($resql) > 0)
@@ -959,7 +959,7 @@ function migrate_contracts_date1($db,$langs,$conf)
print $langs->trans('MigrationContractsEmptyDatesNothingToUpdate')."
\n";
$sql="update llx_contrat set datec=tms where datec is null";
- dolibarr_install_syslog("upgrade2::migrate_contracts_date1 sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_contracts_date1", LOG_DEBUG);
$resql = $db->query($sql);
if (! $resql) dol_print_error($db);
if ($db->affected_rows($resql) > 0)
@@ -989,7 +989,7 @@ function migrate_contracts_date2($db,$langs,$conf)
$sql.= " GROUP BY c.rowid, c.date_contrat";
$resql = $db->query($sql);
- dolibarr_install_syslog("upgrade2::migrate_contracts_date2 sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_contracts_date2", LOG_DEBUG);
if ($resql)
{
$i = 0;
@@ -1050,7 +1050,7 @@ function migrate_contracts_date3($db,$langs,$conf)
print ''.$langs->trans('MigrationContractsIncoherentCreationDateUpdate')."
\n";
$sql="update llx_contrat set datec=date_contrat where datec is null or datec > date_contrat";
- dolibarr_install_syslog("upgrade2::migrate_contracts_date3 sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_contracts_date3", LOG_DEBUG);
$resql = $db->query($sql);
if (! $resql) dol_print_error($db);
if ($db->affected_rows($resql) > 0)
@@ -1078,7 +1078,7 @@ function migrate_contracts_open($db,$langs,$conf)
$sql = "SELECT c.rowid as cref FROM llx_contrat as c, llx_contratdet as cd";
$sql.= " WHERE cd.statut = 4 AND c.statut=2 AND c.rowid=cd.fk_contrat";
- dolibarr_install_syslog("upgrade2::migrate_contracts_open sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_contracts_open", LOG_DEBUG);
$resql = $db->query($sql);
if (! $resql) dol_print_error($db);
if ($db->affected_rows($resql) > 0) {
@@ -1264,7 +1264,7 @@ function migrate_price_facture($db,$langs,$conf)
$sql.= " AND (((fd.total_ttc = 0 AND fd.remise_percent != 100) or fd.total_ttc IS NULL) or f.total_ttc IS NULL)";
//print $sql;
- dolibarr_install_syslog("upgrade2::migrate_price_facture sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_price_facture", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -1377,7 +1377,7 @@ function migrate_price_propal($db,$langs,$conf)
$sql.= " WHERE pd.fk_propal = p.rowid";
$sql.= " AND ((pd.total_ttc = 0 AND pd.remise_percent != 100) or pd.total_ttc IS NULL)";
- dolibarr_install_syslog("upgrade2::migrate_price_propal sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_price_propal", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -1486,7 +1486,7 @@ function migrate_price_contrat($db,$langs,$conf)
$sql.= " WHERE cd.fk_contrat = c.rowid";
$sql.= " AND ((cd.total_ttc = 0 AND cd.remise_percent != 100 AND cd.subprice > 0) or cd.total_ttc IS NULL)";
- dolibarr_install_syslog("upgrade2::migrate_price_contrat sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_price_contrat", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -1571,7 +1571,7 @@ function migrate_price_commande($db,$langs,$conf)
$sql.= " WHERE cd.fk_commande = c.rowid";
$sql.= " AND ((cd.total_ttc = 0 AND cd.remise_percent != 100) or cd.total_ttc IS NULL)";
- dolibarr_install_syslog("upgrade2::migrate_price_commande sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_price_commande", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -1685,7 +1685,7 @@ function migrate_price_commande_fournisseur($db,$langs,$conf)
$sql.= " WHERE cd.fk_commande = c.rowid";
$sql.= " AND ((cd.total_ttc = 0 AND cd.remise_percent != 100) or cd.total_ttc IS NULL)";
- dolibarr_install_syslog("upgrade2::migrate_price_commande_fournisseur sql=".$sql);
+ dolibarr_install_syslog("upgrade2::migrate_price_commande_fournisseur", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
@@ -2406,7 +2406,7 @@ function migrate_restore_missing_links($db,$langs,$conf)
$sql.= " (SELECT t2.rowid FROM ".MAIN_DB_PREFIX.$table2." as t2";
$sql.= " WHERE t1.rowid = t2.".$field2.")";
- dolibarr_install_syslog("upgrade2:migrate_restore_missing_links DIRECTION 1 sql=".$sql);
+ dolibarr_install_syslog("upgrade2:migrate_restore_missing_links DIRECTION 1", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
@@ -2472,7 +2472,7 @@ function migrate_restore_missing_links($db,$langs,$conf)
$sql.= " (SELECT t2.rowid FROM ".MAIN_DB_PREFIX.$table2." as t2";
$sql.= " WHERE t1.rowid = t2.".$field2.")";
- dolibarr_install_syslog("upgrade2:migrate_restore_missing_links DIRECTION 2 sql=".$sql);
+ dolibarr_install_syslog("upgrade2:migrate_restore_missing_links DIRECTION 2", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
diff --git a/htdocs/livraison/class/livraison.class.php b/htdocs/livraison/class/livraison.class.php
index 58ad4f1bc0d..1921ef1633d 100644
--- a/htdocs/livraison/class/livraison.class.php
+++ b/htdocs/livraison/class/livraison.class.php
@@ -128,7 +128,7 @@ class Livraison extends CommonObject
$sql.= ", ".(!empty($this->model_pdf)?"'".$this->db->escape($this->model_pdf)."'":"null");
$sql.= ")";
- dol_syslog("Livraison::create sql=".$sql, LOG_DEBUG);
+ dol_syslog("Livraison::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -140,7 +140,7 @@ class Livraison extends CommonObject
$sql.= "SET ref = '".$this->db->escape($numref)."'";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog("Livraison::create sql=".$sql, LOG_DEBUG);
+ dol_syslog("Livraison::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -241,7 +241,7 @@ class Livraison extends CommonObject
$sql.= " ".($description?"'".$this->db->escape($description)."'":"null").",";
$sql.= $qty.")";
- dol_syslog(get_class($this)."::create_line sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create_line", LOG_DEBUG);
if (! $this->db->query($sql) )
{
$error++;
@@ -271,7 +271,7 @@ class Livraison extends CommonObject
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."element_element as el ON el.fk_target = l.rowid AND el.targettype = '".$this->element."'";
$sql.= " WHERE l.rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -685,7 +685,7 @@ class Livraison extends CommonObject
$sql.= " WHERE ld.fk_origin_line = cd.rowid";
$sql.= " AND ld.fk_livraison = ".$this->id;
- dol_syslog(get_class($this)."::fetch_lines sql=".$sql);
+ dol_syslog(get_class($this)."::fetch_lines", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -915,7 +915,7 @@ class Livraison extends CommonObject
$sql.= " SET date_delivery = ".($date_livraison ? "'".$this->db->idate($date_livraison)."'" : 'null');
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::set_date_livraison sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::set_date_livraison", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/opensurvey/class/opensurveysondage.class.php b/htdocs/opensurvey/class/opensurveysondage.class.php
index 602f5405ca2..b6cc0a0e6fc 100644
--- a/htdocs/opensurvey/class/opensurveysondage.class.php
+++ b/htdocs/opensurvey/class/opensurveysondage.class.php
@@ -132,7 +132,7 @@ class Opensurveysondage extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -196,7 +196,7 @@ class Opensurveysondage extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."opensurvey_sondage as t";
$sql.= " WHERE t.id_sondage = '".$this->db->escape($numsurvey)."'";
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -281,7 +281,7 @@ class Opensurveysondage extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -352,16 +352,16 @@ class Opensurveysondage extends CommonObject
{
$sql='DELETE FROM '.MAIN_DB_PREFIX."opensurvey_comments WHERE id_sondage = '".$this->db->escape($numsondage)."'";
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql=$this->db->query($sql);
$sql='DELETE FROM '.MAIN_DB_PREFIX."opensurvey_user_studs WHERE id_sondage = '".$this->db->escape($numsondage)."'";
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql=$this->db->query($sql);
$sql = "DELETE FROM ".MAIN_DB_PREFIX."opensurvey_sondage";
$sql.= " WHERE id_sondage = '".$this->db->escape($numsondage)."'";
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
}
diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php
index a2d2ee36d9c..1f320f28504 100644
--- a/htdocs/product/class/product.class.php
+++ b/htdocs/product/class/product.class.php
@@ -370,7 +370,7 @@ class Product extends CommonObject
$sql.= ", ".((empty($this->status_batch) || $this->status_batch < 0)? '0':$this->status_batch);
$sql.= ")";
- dol_syslog(get_class($this)."::Create sql=".$sql);
+ dol_syslog(get_class($this)."::Create", LOG_DEBUG);
$result = $this->db->query($sql);
if ( $result )
{
@@ -628,7 +628,7 @@ class Product extends CommonObject
$sql.= ", desiredstock = " . ((isset($this->desiredstock) && $this->desiredstock != '') ? $this->desiredstock : "null");
$sql.= " WHERE rowid = " . $id;
- dol_syslog(get_class($this)."update sql=".$sql);
+ dol_syslog(get_class($this)."update", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1000,7 +1000,7 @@ class Product extends CommonObject
$sql.= " ".$this->localtax1_tx.",".$this->localtax2_tx.",".$this->price_min.",".$this->price_min_ttc.",".$this->price_by_qty.",".$conf->entity;
$sql.= ")";
- dol_syslog(get_class($this)."_log_price sql=".$sql);
+ dol_syslog(get_class($this)."_log_price", LOG_DEBUG);
$resql=$this->db->query($sql);
if(! $resql)
{
@@ -1027,7 +1027,7 @@ class Product extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."product_price";
$sql.= " WHERE rowid=".$rowid;
- dol_syslog(get_class($this)."log_price_delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."log_price_delete", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1063,7 +1063,7 @@ class Product extends CommonObject
$sql.= " WHERE pfp.rowid = ".$prodfournprice;
if ($qty) $sql.= " AND pfp.quantity <= ".$qty;
- dol_syslog(get_class($this)."::get_buyprice sql=".$sql);
+ dol_syslog(get_class($this)."::get_buyprice", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1089,7 +1089,7 @@ class Product extends CommonObject
$sql.= " ORDER BY pfp.quantity DESC";
$sql.= " LIMIT 1";
- dol_syslog(get_class($this)."::get_buyprice sql=".$sql);
+ dol_syslog(get_class($this)."::get_buyprice", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1222,7 +1222,7 @@ class Product extends CommonObject
$sql.= " recuperableonly='".$newnpr."'";
$sql.= " WHERE rowid = ".$id;
- dol_syslog(get_class($this)."update_price sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."update_price", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1303,7 +1303,7 @@ class Product extends CommonObject
else if ($ref_ext) $sql.= " AND ref_ext = '".$this->db->escape($ref_ext)."'";
}
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql = $this->db->query($sql);
if ( $resql )
{
@@ -2152,7 +2152,7 @@ class Product extends CommonObject
$sql.= " AND fk_product != ".$this->id;
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::add_fournisseur sql=".$sql);
+ dol_syslog(get_class($this)."::add_fournisseur", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -2176,7 +2176,7 @@ class Product extends CommonObject
$sql.= " AND fk_product = ".$this->id;
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::add_fournisseur sql=".$sql);
+ dol_syslog(get_class($this)."::add_fournisseur", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -2205,7 +2205,7 @@ class Product extends CommonObject
$sql.= ", 0";
$sql.= ")";
- dol_syslog(get_class($this)."::add_fournisseur sql=".$sql);
+ dol_syslog(get_class($this)."::add_fournisseur", LOG_DEBUG);
if ($this->db->query($sql))
{
$this->product_fourn_price_id = $this->db->last_insert_id(MAIN_DB_PREFIX."product_fournisseur_price");
@@ -2829,7 +2829,7 @@ class Product extends CommonObject
$sql.= " AND w.rowid = ps.fk_entrepot";
$sql.= " AND ps.fk_product = ".$this->id;
- dol_syslog(get_class($this)."::load_stock sql=".$sql);
+ dol_syslog(get_class($this)."::load_stock", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
diff --git a/htdocs/product/class/productbatch.class.php b/htdocs/product/class/productbatch.class.php
index 9c92431c563..78af2b01037 100644
--- a/htdocs/product/class/productbatch.class.php
+++ b/htdocs/product/class/productbatch.class.php
@@ -97,7 +97,7 @@ class Productbatch extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
if (! $error)
@@ -161,7 +161,7 @@ class Productbatch extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX.self::$_table_element." as t";
$sql.= " WHERE t.rowid = ".$id;
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -217,7 +217,7 @@ class Productbatch extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
if (! $error)
@@ -289,7 +289,7 @@ class Productbatch extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX.self::$_table_element."";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
}
@@ -431,7 +431,7 @@ class Productbatch extends CommonObject
if (! empty($where)) $sql.= " AND (".implode(" OR ",$where).")";
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -487,7 +487,7 @@ class Productbatch extends CommonObject
$sql.= " WHERE fk_product_stock=".$fk_product_stock;
if ($with_qty) $sql.= " AND qty<>0";
- dol_syslog("productbatch::findAll sql=".$sql, LOG_DEBUG);
+ dol_syslog("productbatch::findAll", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/product/liste.php b/htdocs/product/liste.php
index 40e99a2d2ee..8d82b5548a5 100644
--- a/htdocs/product/liste.php
+++ b/htdocs/product/liste.php
@@ -199,7 +199,7 @@ else
$sql.= $db->order($sortfield,$sortorder);
$sql.= $db->plimit($limit + 1, $offset);
- dol_syslog("product:list.php: sql=".$sql);
+ dol_syslog("product:list.php:", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
diff --git a/htdocs/product/stock/class/entrepot.class.php b/htdocs/product/stock/class/entrepot.class.php
index b28a8f9451f..b7061352fe6 100644
--- a/htdocs/product/stock/class/entrepot.class.php
+++ b/htdocs/product/stock/class/entrepot.class.php
@@ -89,7 +89,7 @@ class Entrepot extends CommonObject
$sql = "INSERT INTO ".MAIN_DB_PREFIX."entrepot (entity, datec, fk_user_author, label)";
$sql .= " VALUES (".$conf->entity.",'".$this->db->idate($now)."',".$user->id.",'".$this->db->escape($this->libelle)."')";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -158,7 +158,7 @@ class Entrepot extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -187,12 +187,12 @@ class Entrepot extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."stock_mouvement";
$sql.= " WHERE fk_entrepot = " . $this->id;
- dol_syslog("Entrepot::delete sql=".$sql);
+ dol_syslog("Entrepot::delete", LOG_DEBUG);
$resql1=$this->db->query($sql);
$sql = "DELETE FROM ".MAIN_DB_PREFIX."product_stock";
$sql.= " WHERE fk_entrepot = " . $this->id;
- dol_syslog("Entrepot::delete sql=".$sql);
+ dol_syslog("Entrepot::delete", LOG_DEBUG);
$resql2=$this->db->query($sql);
if ($resql1 && $resql2)
@@ -200,13 +200,13 @@ class Entrepot extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."entrepot";
$sql.= " WHERE rowid = " . $this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql1=$this->db->query($sql);
// Update denormalized fields because we change content of produt_stock
$sql = "UPDATE ".MAIN_DB_PREFIX."product p SET p.stock= (SELECT SUM(ps.reel) FROM ".MAIN_DB_PREFIX."product_stock ps WHERE ps.fk_product = p.rowid)";
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql2=$this->db->query($sql);
if ($resql1 && $resql2)
@@ -258,7 +258,7 @@ class Entrepot extends CommonObject
if ($ref) $sql.= " AND label = '".$this->db->escape($ref)."'";
}
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -309,7 +309,7 @@ class Entrepot extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."entrepot as e";
$sql.= " WHERE e.rowid = ".$id;
- dol_syslog(get_class($this)."::info sql=".$sql);
+ dol_syslog(get_class($this)."::info", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
diff --git a/htdocs/product/stock/class/mouvementstock.class.php b/htdocs/product/stock/class/mouvementstock.class.php
index e8861d60ddb..2bdb24e355b 100644
--- a/htdocs/product/stock/class/mouvementstock.class.php
+++ b/htdocs/product/stock/class/mouvementstock.class.php
@@ -112,7 +112,7 @@ class MouvementStock
$sql.= " '".$origintype."'";
$sql.= ")";
- dol_syslog(get_class($this)."::_create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::_create", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -138,7 +138,7 @@ class MouvementStock
$sql = "SELECT rowid, reel, pmp FROM ".MAIN_DB_PREFIX."product_stock";
$sql.= " WHERE fk_entrepot = ".$entrepot_id." AND fk_product = ".$fk_product;
- dol_syslog(get_class($this)."::_create sql=".$sql);
+ dol_syslog(get_class($this)."::_create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -203,7 +203,7 @@ class MouvementStock
$sql.= " (".$newpmpwarehouse.", ".$qty.", ".$entrepot_id.", ".$fk_product.")";
}
- dol_syslog(get_class($this)."::_create sql=".$sql);
+ dol_syslog(get_class($this)."::_create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -230,7 +230,7 @@ class MouvementStock
// May be this request is better:
// UPDATE llx_product p SET p.stock= (SELECT SUM(ps.reel) FROM llx_product_stock ps WHERE ps.fk_product = p.rowid);
- dol_syslog(get_class($this)."::_create sql=".$sql);
+ dol_syslog(get_class($this)."::_create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -298,7 +298,7 @@ class MouvementStock
$sql.= " FROM ".MAIN_DB_PREFIX."product_association";
$sql.= " WHERE fk_product_pere = ".$idProduct;
- dol_syslog(get_class($this)."::_createSubProduct sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::_createSubProduct", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/product/stock/index.php b/htdocs/product/stock/index.php
index da52a5aac58..1309da95a2a 100644
--- a/htdocs/product/stock/index.php
+++ b/htdocs/product/stock/index.php
@@ -124,7 +124,7 @@ if (empty($conf->global->STOCK_SUPPORTS_SERVICES)) $sql.= " AND p.fk_product_typ
$sql.= $db->order("datem","DESC");
$sql.= $db->plimit($max,0);
-dol_syslog("Index:list stock movements sql=".$sql, LOG_DEBUG);
+dol_syslog("Index:list stock movements", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php
index 0a56b5253a9..ff2934eb970 100644
--- a/htdocs/projet/class/task.class.php
+++ b/htdocs/projet/class/task.class.php
@@ -123,7 +123,7 @@ class Task extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -212,7 +212,7 @@ class Task extends CommonObject
$sql.="t.rowid = ".$id;
}
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -295,7 +295,7 @@ class Task extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -386,7 +386,7 @@ class Task extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."projet_task";
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -457,7 +457,7 @@ class Task extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."projet_task";
$sql.= " WHERE fk_task_parent=".$this->id;
- dol_syslog(get_class($this)."::hasChildren sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::hasChildren", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
else
@@ -572,7 +572,7 @@ class Task extends CommonObject
$sql.= " ORDER BY p.ref, t.rang, t.dateo";
//print $sql;
- dol_syslog(get_class($this)."::getTasksArray sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::getTasksArray", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -686,7 +686,7 @@ class Task extends CommonObject
}
//print $sql;
- dol_syslog(get_class($this)."::getUserRolesForProjectsOrTasks sql=".$sql);
+ dol_syslog(get_class($this)."::getUserRolesForProjectsOrTasks", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -764,7 +764,7 @@ class Task extends CommonObject
$sql.= ", ".(isset($this->timespent_note)?"'".$this->db->escape($this->timespent_note)."'":"null");
$sql.= ")";
- dol_syslog(get_class($this)."::addTimeSpent sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::addTimeSpent", LOG_DEBUG);
if ($this->db->query($sql) )
{
$tasktime_id = $this->db->last_insert_id(MAIN_DB_PREFIX."projet_task_time");
@@ -793,7 +793,7 @@ class Task extends CommonObject
$sql.= " SET duration_effective = duration_effective + '".price2num($this->timespent_duration)."'";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::addTimeSpent sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::addTimeSpent", LOG_DEBUG);
if (! $this->db->query($sql) )
{
$this->error=$this->db->lasterror();
@@ -808,7 +808,7 @@ class Task extends CommonObject
$sql.= " SET thm = (SELECT thm FROM ".MAIN_DB_PREFIX."user WHERE rowid = ".$this->timespent_fk_user.")";
$sql.= " WHERE rowid = ".$tasktime_id;
- dol_syslog(get_class($this)."::addTimeSpent sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::addTimeSpent", LOG_DEBUG);
if (! $this->db->query($sql) )
{
$this->error=$this->db->lasterror();
@@ -840,7 +840,7 @@ class Task extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."projet_task_time as t";
$sql.= " WHERE t.rowid = ".$id;
- dol_syslog(get_class($this)."::fetchTimeSpent sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetchTimeSpent", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -892,7 +892,7 @@ class Task extends CommonObject
$sql.= " note = ".(isset($this->timespent_note)?"'".$this->db->escape($this->timespent_note)."'":"null");
$sql.= " WHERE rowid = ".$this->timespent_id;
- dol_syslog(get_class($this)."::updateTimeSpent sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::updateTimeSpent", LOG_DEBUG);
if ($this->db->query($sql) )
{
if (! $notrigger)
@@ -921,7 +921,7 @@ class Task extends CommonObject
$sql.= " SET duration_effective = duration_effective + '".$newDuration."'";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::updateTimeSpent sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::updateTimeSpent", LOG_DEBUG);
if (! $this->db->query($sql) )
{
$this->error=$this->db->lasterror();
@@ -951,7 +951,7 @@ class Task extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."projet_task_time";
$sql.= " WHERE rowid = ".$this->timespent_id;
- dol_syslog(get_class($this)."::delTimeSpent sql=".$sql);
+ dol_syslog(get_class($this)."::delTimeSpent", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -974,7 +974,7 @@ class Task extends CommonObject
$sql.= " SET duration_effective = duration_effective - '".$this->timespent_duration."'";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::delTimeSpent sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delTimeSpent", LOG_DEBUG);
if ($this->db->query($sql) )
{
$result = 0;
diff --git a/htdocs/projet/liste.php b/htdocs/projet/liste.php
index 39fcdb64a01..3dab05c1826 100644
--- a/htdocs/projet/liste.php
+++ b/htdocs/projet/liste.php
@@ -100,7 +100,7 @@ if ($search_societe)
$sql.= $db->order($sortfield,$sortorder);
$sql.= $db->plimit($conf->liste_limit+1, $offset);
-dol_syslog("list allowed project sql=".$sql);
+dol_syslog("list allowed project", LOG_DEBUG);
$resql = $db->query($sql);
if ($resql)
{
diff --git a/htdocs/resource/class/resource.class.php b/htdocs/resource/class/resource.class.php
index 6edeef201fb..33d7af532b2 100644
--- a/htdocs/resource/class/resource.class.php
+++ b/htdocs/resource/class/resource.class.php
@@ -106,7 +106,7 @@ class Resource extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql) {
$error++; $this->errors[]="Error ".$this->db->lasterror();
@@ -168,7 +168,7 @@ class Resource extends CommonObject
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_type_resource as ty ON ty.code=t.fk_code_type_resource";
$sql.= " WHERE t.rowid = ".$this->db->escape($id);
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -225,7 +225,7 @@ class Resource extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -285,7 +285,7 @@ class Resource extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."element_resources as t";
$sql.= " WHERE t.rowid = ".$this->db->escape($id);
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -336,12 +336,12 @@ class Resource extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."resource";
$sql.= " WHERE rowid =".$rowid;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
if ($this->db->query($sql))
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."element_resources";
$sql.= " WHERE element_type='resource' AND resource_id ='".$this->db->escape($rowid)."'";
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
if ($this->db->query($sql))
{
if (! $notrigger)
@@ -411,7 +411,7 @@ class Resource extends CommonObject
$sql.= " GROUP BY t.rowid";
$sql.= " ORDER BY $sortfield $sortorder ";
if ($limit) $sql.= $this->db->plimit($limit+1,$offset);
- dol_syslog(get_class($this)."::fetch_all sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch_all", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
@@ -484,7 +484,7 @@ class Resource extends CommonObject
}
$sql.= " GROUP BY t.rowid";
$sql.= " ORDER BY $sortfield $sortorder " . $this->db->plimit($limit+1,$offset);
- dol_syslog(get_class($this)."::fetch_all sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch_all", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
@@ -569,7 +569,7 @@ class Resource extends CommonObject
}
$sql.= " GROUP BY t.resource_id";
$sql.= " ORDER BY " . $sortfield . " " . $sortorder . " " . $this->db->plimit($limit+1,$offset);
- dol_syslog(get_class($this)."::fetch_all sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch_all", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
@@ -729,7 +729,7 @@ class Resource extends CommonObject
$this->db->begin();
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }
@@ -784,7 +784,7 @@ class Resource extends CommonObject
$sql.=" AND resource_type LIKE '%".$resource_type."%'";
$sql .= ' ORDER BY resource_type';
- dol_syslog(get_class($this)."::getElementResources sql=".$sql);
+ dol_syslog(get_class($this)."::getElementResources", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -837,7 +837,7 @@ class Resource extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."c_type_resource";
$sql.= " WHERE active > 0";
$sql.= " ORDER BY rowid";
- dol_syslog(get_class($this)."::load_cache_code_type_resource sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::load_cache_code_type_resource", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/societe/ajaxcompanies.php b/htdocs/societe/ajaxcompanies.php
index 32fbe2e2c00..36abbb909ad 100644
--- a/htdocs/societe/ajaxcompanies.php
+++ b/htdocs/societe/ajaxcompanies.php
@@ -84,7 +84,7 @@ if (GETPOST('newcompany') || GETPOST('socid','int') || GETPOST('id_fourn'))
if (! empty($_GET["filter"])) $sql.= " AND ".$_GET["filter"]; // Add other filters
$sql.= " ORDER BY nom ASC";
- //dol_syslog("ajaxcompanies sql=".$sql);
+ //dol_syslog("ajaxcompanies", LOG_DEBUG);
$resql=$db->query($sql);
if ($resql)
{
diff --git a/htdocs/societe/class/address.class.php b/htdocs/societe/class/address.class.php
index 174afbe5671..fe109b9137e 100644
--- a/htdocs/societe/class/address.class.php
+++ b/htdocs/societe/class/address.class.php
@@ -200,7 +200,7 @@ class Address
if ($user) $sql .= ",fk_user_modif = '".$user->id."'";
$sql .= " WHERE fk_soc = '" . $socid ."' AND rowid = '" . $this->db->escape($id) ."'";
- dol_syslog(get_class($this)."::Update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::Update", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/societe/class/companybankaccount.class.php b/htdocs/societe/class/companybankaccount.class.php
index 189556b186d..784b02ed930 100644
--- a/htdocs/societe/class/companybankaccount.class.php
+++ b/htdocs/societe/class/companybankaccount.class.php
@@ -227,7 +227,7 @@ class CompanyBankAccount extends Account
$sql = "DELETE FROM ".MAIN_DB_PREFIX."societe_rib";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result) {
return 1;
diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php
index 9ffa0546782..5615961de86 100644
--- a/htdocs/societe/class/societe.class.php
+++ b/htdocs/societe/class/societe.class.php
@@ -418,7 +418,7 @@ class Societe extends CommonObject
$sql.= ", 0";
$sql.= ", ".(! empty($this->import_key) ? "'".$this->import_key."'":"null").")";
- dol_syslog(get_class($this)."::create sql=".$sql);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -785,7 +785,7 @@ class Societe extends CommonObject
$sql .= " WHERE rowid = '" . $id ."'";
- dol_syslog(get_class($this)."::Update sql=".$sql);
+ dol_syslog(get_class($this)."::Update", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -885,7 +885,7 @@ class Societe extends CommonObject
else
{
- $this->error = $langs->trans("Error sql=".$sql);
+ $this->error = $langs->trans("Error", LOG_DEBUG);
dol_syslog(get_class($this)."::Update fails update sql=".$sql, LOG_ERR);
$result = -2;
}
@@ -1266,7 +1266,7 @@ class Societe extends CommonObject
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."socpeople";
$sql.= " WHERE fk_soc = " . $id;
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
if (! $this->db->query($sql))
{
$error++;
@@ -1280,7 +1280,7 @@ class Societe extends CommonObject
{
$sql = "UPDATE ".MAIN_DB_PREFIX."adherent";
$sql.= " SET fk_soc = NULL WHERE fk_soc = " . $id;
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
if (! $this->db->query($sql))
{
$error++;
@@ -1294,7 +1294,7 @@ class Societe extends CommonObject
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."societe_rib";
$sql.= " WHERE fk_soc = " . $id;
- dol_syslog(get_class($this)."::Delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::Delete", LOG_DEBUG);
if (! $this->db->query($sql))
{
$error++;
@@ -1319,7 +1319,7 @@ class Societe extends CommonObject
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."societe";
$sql.= " WHERE rowid = " . $id;
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
if (! $this->db->query($sql))
{
$error++;
@@ -2689,7 +2689,7 @@ class Societe extends CommonObject
$sql.= " SET fk_soc=".$this->id;
$sql.= " WHERE rowid=".$member->id;
- dol_syslog(get_class($this)."::create_from_member sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create_from_member", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -2863,7 +2863,7 @@ class Societe extends CommonObject
elseif ($localTaxNum == 1) $sql .= " AND t.localtax1_type <> '0'";
elseif ($localTaxNum == 2) $sql .= " AND t.localtax2_type <> '0'";
- dol_syslog("useLocalTax sql=".$sql);
+ dol_syslog("useLocalTax", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -2883,7 +2883,7 @@ class Societe extends CommonObject
$sql .= " WHERE r.fk_pays = p.rowid AND p.code = '".$this->country_code."'";
$sql .= " AND r.active = 1";
- dol_syslog("useRevenueStamp sql=".$sql);
+ dol_syslog("useRevenueStamp", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -2944,7 +2944,7 @@ class Societe extends CommonObject
$sql.= " fk_prospectlevel='".$this->fk_prospectlevel."'";
$sql.= ",fk_user_modif='".$user->id."'";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::set_prospect_level sql=".$sql);
+ dol_syslog(get_class($this)."::set_prospect_level", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -3027,7 +3027,7 @@ class Societe extends CommonObject
$sql.= ",fk_user_modif='".$user->id."'";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::set_commnucation_level sql=".$sql);
+ dol_syslog(get_class($this)."::set_commnucation_level", LOG_DEBUG);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -3061,7 +3061,7 @@ class Societe extends CommonObject
$sql.= " outstanding_limit= ".($outstanding!=''?$outstanding:'null');
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::set_outstanding sql=".$sql);
+ dol_syslog(get_class($this)."::set_outstanding", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -3098,7 +3098,7 @@ class Societe extends CommonObject
//$sql .= " AND (fk_statut <> 3 OR close_code <> 'abandon')"; // Not abandonned for undefined reason
$sql .= " AND fk_statut <> 3"; // Not abandonned
- dol_syslog("get_OutstandingBill sql=".$sql);
+ dol_syslog("get_OutstandingBill", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php
index f2d2e64791d..1ed5c1afc2c 100644
--- a/htdocs/societe/soc.php
+++ b/htdocs/societe/soc.php
@@ -432,7 +432,7 @@ if (empty($reshook))
$sql = "UPDATE ".MAIN_DB_PREFIX."adherent";
$sql.= " SET fk_soc = NULL WHERE fk_soc = " . $id;
- dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
if (! $this->db->query($sql))
{
$error++;
diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php
index d671322d0dc..7eac18240f0 100644
--- a/htdocs/user/class/user.class.php
+++ b/htdocs/user/class/user.class.php
@@ -181,7 +181,7 @@ class User extends CommonObject
$sql.= " AND u.rowid = ".$id;
}
- dol_syslog(get_class($this)."::fetch sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -664,7 +664,7 @@ class User extends CommonObject
$sql.= " WHERE rowid = ".$this->id;
$result = $this->db->query($sql);
- dol_syslog(get_class($this)."::setstatus sql=".$sql);
+ dol_syslog(get_class($this)."::setstatus", LOG_DEBUG);
if ($result)
{
// Appel des triggers
@@ -748,7 +748,7 @@ class User extends CommonObject
if (! $error)
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."user WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::delete sql=".$sql);
+ dol_syslog(get_class($this)."::delete", LOG_DEBUG);
if (! $this->db->query($sql))
{
$error++;
@@ -811,7 +811,7 @@ class User extends CommonObject
$sql.= " WHERE login ='".$this->db->escape($this->login)."'";
$sql.= " AND entity IN (0,".$conf->entity.")";
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -831,7 +831,7 @@ class User extends CommonObject
$sql.= " VALUES('".$this->db->idate($this->datec)."','".$this->db->escape($this->login)."','".$this->ldap_sid."',".$this->entity.")";
$result=$this->db->query($sql);
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
if ($result)
{
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."user");
@@ -950,7 +950,7 @@ class User extends CommonObject
$sql.= " WHERE rowid=".$this->id;
$resql=$this->db->query($sql);
- dol_syslog(get_class($this)."::create_from_contact sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create_from_contact", LOG_DEBUG);
if ($resql)
{
// Appel des triggers
@@ -1025,7 +1025,7 @@ class User extends CommonObject
$sql.= " SET fk_societe=".$member->fk_soc;
$sql.= " WHERE rowid=".$this->id;
- dol_syslog(get_class($this)."::create_from_member sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create_from_member", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
@@ -1176,7 +1176,7 @@ class User extends CommonObject
$sql.= ", entity = '".$this->entity."'";
$sql.= " WHERE rowid = ".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -1197,13 +1197,13 @@ class User extends CommonObject
if ($this->fk_member > 0)
{
$sql = "UPDATE ".MAIN_DB_PREFIX."user SET fk_member = NULL where fk_member = ".$this->fk_member;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $this->error=$this->db->error(); $this->db->rollback(); return -5; }
}
// Set link to user
$sql = "UPDATE ".MAIN_DB_PREFIX."user SET fk_member =".($this->fk_member>0?$this->fk_member:'null')." where rowid = ".$this->id;
- dol_syslog(get_class($this)."::update sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if (! $resql) { $this->error=$this->db->error(); $this->db->rollback(); return -5; }
@@ -2199,7 +2199,7 @@ class User extends CommonObject
$sql.= " WHERE fk_user != 0";
$sql.= " AND entity = ".$conf->entity;
- dol_syslog(get_class($this)."::load_parentof sql=".$sql);
+ dol_syslog(get_class($this)."::load_parentof", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -2249,7 +2249,7 @@ class User extends CommonObject
{
$sql.= " WHERE u.entity IN (".getEntity('user',1).")";
}
- dol_syslog(get_class($this)."::get_full_tree get user list sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::get_full_tree get user list", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/user/class/usergroup.class.php b/htdocs/user/class/usergroup.class.php
index 72dc0b7cf48..84b0bd4cbb5 100644
--- a/htdocs/user/class/usergroup.class.php
+++ b/htdocs/user/class/usergroup.class.php
@@ -85,7 +85,7 @@ class UserGroup extends CommonObject
$sql.= " WHERE g.rowid = ".$id;
}
- dol_syslog(get_class($this)."::fetch sql=".$sql);
+ dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -146,7 +146,7 @@ class UserGroup extends CommonObject
}
$sql.= " ORDER BY g.nom";
- dol_syslog(get_class($this)."::listGroupsForUser sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::listGroupsForUser", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result)
{
@@ -204,7 +204,7 @@ class UserGroup extends CommonObject
}
if (! empty($excludefilter)) $sql.=' AND ('.$excludefilter.')';
- dol_syslog(get_class($this)."::listUsersForGroup sql=".$sql,LOG_DEBUG);
+ dol_syslog(get_class($this)."::listUsersForGroup", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
@@ -592,7 +592,7 @@ class UserGroup extends CommonObject
$sql.= ",".$entity;
$sql.= ")";
- dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
+ dol_syslog(get_class($this)."::create", LOG_DEBUG);
$result=$this->db->query($sql);
if ($result)
{
@@ -644,7 +644,7 @@ class UserGroup extends CommonObject
$sql.= ", note = '" . $this->db->escape($this->note) . "'";
$sql.= " WHERE rowid = " . $this->id;
- dol_syslog(get_class($this)."::update sql=".$sql);
+ dol_syslog(get_class($this)."::update", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
{
diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php
index d78a512bf53..179214c1bc4 100644
--- a/htdocs/user/fiche.php
+++ b/htdocs/user/fiche.php
@@ -395,7 +395,7 @@ if ($action == 'update' && ! $_POST["cancel"])
$sql.= " WHERE rowid=".$object->id;
}
$resql=$db->query($sql);
- dol_syslog("fiche::update sql=".$sql, LOG_DEBUG);
+ dol_syslog("fiche::update", LOG_DEBUG);
if (! $resql)
{
$error++;
diff --git a/htdocs/user/perms.php b/htdocs/user/perms.php
index af7a95af74d..2be426bb571 100644
--- a/htdocs/user/perms.php
+++ b/htdocs/user/perms.php
@@ -191,7 +191,7 @@ else
}
$sql.= " AND ur.fk_user = ".$fuser->id;
-dol_syslog("get user perms sql=".$sql);
+dol_syslog("get user perms", LOG_DEBUG);
$result=$db->query($sql);
if ($result)
{
@@ -227,7 +227,7 @@ if (! empty($conf->multicompany->enabled) && ! empty($conf->multicompany->transv
$sql.= " AND gr.fk_usergroup = gu.fk_usergroup";
$sql.= " AND gu.fk_user = ".$fuser->id;
-dol_syslog("get user perms sql=".$sql);
+dol_syslog("get user perms", LOG_DEBUG);
$result=$db->query($sql);
if ($result)
{
diff --git a/htdocs/webservices/server_productorservice.php b/htdocs/webservices/server_productorservice.php
index c2eba3f9d1b..f866e197e15 100644
--- a/htdocs/webservices/server_productorservice.php
+++ b/htdocs/webservices/server_productorservice.php
@@ -867,7 +867,7 @@ function getProductsForCategory($authentication,$id,$lang='')
$sql .= " ORDER BY fk_".$field." ASC" ;
- dol_syslog("getProductsForCategory get id of product into category sql=".$sql);
+ dol_syslog("getProductsForCategory get id of product into category", LOG_DEBUG);
$res = $db->query($sql);
if ($res)
{
diff --git a/htdocs/webservices/server_thirdparty.php b/htdocs/webservices/server_thirdparty.php
index c5ac0c8c686..632a4c164e5 100644
--- a/htdocs/webservices/server_thirdparty.php
+++ b/htdocs/webservices/server_thirdparty.php
@@ -660,7 +660,7 @@ function getListOfThirdParties($authentication,$filterthirdparty)
if ($key == 'supplier' && $val != '') $sql.=" AND s.fournisseur = ".$db->escape($val);
if ($key == 'category' && $val != '') $sql.=" AND s.rowid IN (SELECT fk_societe FROM ".MAIN_DB_PREFIX."categorie_societe WHERE fk_categorie=".$db->escape($val).") ";
}
- dol_syslog("Function: getListOfThirdParties sql=".$sql);
+ dol_syslog("Function: getListOfThirdParties", LOG_DEBUG);
$extrafields=new ExtraFields($db);
$extralabels=$extrafields->fetch_name_optionals_label('societe',true);
diff --git a/scripts/emailings/mailing-send.php b/scripts/emailings/mailing-send.php
index c271b6dd7a2..cf8dceb8f9e 100755
--- a/scripts/emailings/mailing-send.php
+++ b/scripts/emailings/mailing-send.php
@@ -226,7 +226,7 @@ if ($resql)
{
//Update status communication of thirdparty prospect
$sqlx = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=2 WHERE rowid IN (SELECT source_id FROM ".MAIN_DB_PREFIX."mailing_cibles WHERE rowid=".$obj2->rowid.")";
- dol_syslog("fiche.php: set prospect thirdparty status sql=".$sql, LOG_DEBUG);
+ dol_syslog("fiche.php: set prospect thirdparty status", LOG_DEBUG);
$resqlx=$db->query($sqlx);
if (! $resqlx)
{
@@ -236,7 +236,7 @@ if ($resql)
//Update status communication of contact prospect
$sqlx = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=2 WHERE rowid IN (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX."socpeople AS sc INNER JOIN ".MAIN_DB_PREFIX."mailing_cibles AS mc ON mc.rowid=".$obj2->rowid." AND mc.source_type = 'contact' AND mc.source_id = sc.rowid)";
- dol_syslog("fiche.php: set prospect contact status sql=".$sql, LOG_DEBUG);
+ dol_syslog("fiche.php: set prospect contact status", LOG_DEBUG);
$resqlx=$db->query($sqlx);
if (! $resqlx)