From 56abf1cd726e56b16d72fa2b900af985feb8cb1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Fri, 13 Jun 2014 02:28:30 +0200 Subject: [PATCH] Removed duplicated SQL error logging --- dev/skeletons/skeleton_class.class.php | 1 - htdocs/adherents/class/adherent.class.php | 9 --------- .../adherents/class/adherent_type.class.php | 1 - htdocs/adherents/class/cotisation.class.php | 2 -- htdocs/categories/class/categorie.class.php | 2 -- htdocs/comm/action/class/actioncomm.class.php | 4 ---- htdocs/comm/mailing/class/mailing.class.php | 7 ------- htdocs/comm/propal/class/propal.class.php | 15 -------------- htdocs/commande/class/commande.class.php | 20 ------------------- htdocs/compta/bank/class/account.class.php | 4 ---- htdocs/compta/bank/class/bankcateg.class.php | 1 - .../facture/class/facture-rec.class.php | 2 -- htdocs/compta/facture/class/facture.class.php | 9 --------- .../facture/class/paymentterm.class.php | 2 -- .../compta/localtax/class/localtax.class.php | 4 ---- .../cheque/class/remisecheque.class.php | 3 --- .../compta/paiement/class/paiement.class.php | 4 ---- .../class/bonprelevement.class.php | 2 -- .../salaries/class/paymentsalary.class.php | 3 --- .../class/paymentsocialcontribution.class.php | 3 --- htdocs/compta/tva/class/tva.class.php | 4 ---- htdocs/contact/class/contact.class.php | 5 ----- htdocs/contrat/class/contrat.class.php | 8 -------- htdocs/core/class/commonobject.class.php | 16 --------------- htdocs/core/class/cpays.class.php | 1 - htdocs/core/class/ctypent.class.php | 1 - htdocs/core/class/discount.class.php | 2 -- htdocs/core/class/events.class.php | 4 ---- htdocs/core/class/extrafields.class.php | 1 - htdocs/core/class/infobox.class.php | 1 - htdocs/core/class/link.class.php | 3 --- htdocs/core/class/menubase.class.php | 4 ---- htdocs/core/class/translate.class.php | 1 - htdocs/core/lib/admin.lib.php | 1 - htdocs/core/lib/functions.lib.php | 1 - htdocs/core/modules/DolibarrModules.class.php | 16 --------------- .../modules/facture/doc/pdf_crabe.modules.php | 2 -- .../pdf/pdf_canelle.modules.php | 1 - htdocs/cron/class/cronjob.class.php | 3 --- htdocs/ecm/class/ecmdirectory.class.php | 6 ------ htdocs/expedition/class/expedition.class.php | 3 --- .../class/expeditionbatch.class.php | 1 - htdocs/exports/class/export.class.php | 1 - htdocs/fichinter/class/fichinter.class.php | 10 ---------- .../class/fournisseur.commande.class.php | 12 ----------- .../fourn/class/fournisseur.facture.class.php | 5 ----- .../fourn/class/fournisseur.product.class.php | 5 ----- htdocs/fourn/class/paiementfourn.class.php | 1 - htdocs/holiday/class/holiday.class.php | 13 ------------ htdocs/imports/class/import.class.php | 1 - htdocs/livraison/class/livraison.class.php | 3 --- .../class/opensurveysondage.class.php | 1 - htdocs/product/class/product.class.php | 4 ---- htdocs/product/class/productbatch.class.php | 3 --- .../class/productcustomerprice.class.php | 4 ---- htdocs/product/stock/class/entrepot.class.php | 3 --- .../stock/class/mouvementstock.class.php | 5 ----- .../product/stock/lib/replenishment.lib.php | 1 - htdocs/product/stock/replenish.php | 1 - htdocs/projet/class/project.class.php | 1 - htdocs/projet/class/task.class.php | 8 -------- htdocs/resource/class/resource.class.php | 3 --- htdocs/societe/admin/societe.php | 3 +-- htdocs/societe/class/address.class.php | 1 - htdocs/societe/class/societe.class.php | 5 ----- htdocs/societe/soc.php | 1 - htdocs/user/class/user.class.php | 17 +++------------- htdocs/user/class/usergroup.class.php | 4 ---- 68 files changed, 4 insertions(+), 295 deletions(-) diff --git a/dev/skeletons/skeleton_class.class.php b/dev/skeletons/skeleton_class.class.php index 53f6d0a66f3..7339bbb4aca 100644 --- a/dev/skeletons/skeleton_class.class.php +++ b/dev/skeletons/skeleton_class.class.php @@ -169,7 +169,6 @@ class Skeleton_Class extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index 7dcb131b7df..811596c9522 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -378,7 +378,6 @@ class Adherent extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::create ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -623,7 +622,6 @@ class Adherent extends CommonObject { $this->db->rollback(); $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::Update ".$this->error,LOG_ERR); return -2; } } @@ -683,7 +681,6 @@ class Adherent extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::update_end_date ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -718,7 +715,6 @@ class Adherent extends CommonObject $error++; $this->error .= $this->db->lasterror(); $errorflag=-1; - dol_syslog(get_class($this)."::delete erreur ".$errorflag." ".$this->error, LOG_ERR); } @@ -733,7 +729,6 @@ class Adherent extends CommonObject $error++; $this->error .= $this->db->lasterror(); $errorflag=-2; - dol_syslog(get_class($this)."::delete erreur ".$errorflag." ".$this->error, LOG_ERR); } } @@ -746,7 +741,6 @@ class Adherent extends CommonObject $error++; $this->error .= $this->db->lasterror(); $errorflag=-3; - dol_syslog(get_class($this)."::delete erreur ".$errorflag." ".$this->error, LOG_ERR); } } @@ -776,7 +770,6 @@ class Adherent extends CommonObject $error++; $this->error .= $this->db->lasterror(); $errorflag=-5; - dol_syslog(get_class($this)."::delete erreur ".$errorflag." ".$this->error, LOG_ERR); } } @@ -978,7 +971,6 @@ class Adherent extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::setThirdPartyId ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -1169,7 +1161,6 @@ class Adherent extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/adherents/class/adherent_type.class.php b/htdocs/adherents/class/adherent_type.class.php index 78e046978e9..43a272cf574 100644 --- a/htdocs/adherents/class/adherent_type.class.php +++ b/htdocs/adherents/class/adherent_type.class.php @@ -211,7 +211,6 @@ class AdherentType extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog("Adherent_type::fetch ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/adherents/class/cotisation.class.php b/htdocs/adherents/class/cotisation.class.php index 712205c3a0d..5193a729970 100644 --- a/htdocs/adherents/class/cotisation.class.php +++ b/htdocs/adherents/class/cotisation.class.php @@ -91,7 +91,6 @@ class Cotisation extends CommonObject else { $this->error=$this->db->error(); - dol_syslog($this->error, LOG_ERR); return -1; } } @@ -183,7 +182,6 @@ class Cotisation extends CommonObject { $this->db->rollback(); $this->error=$this->db->error(); - dol_syslog(get_class($this)."::update ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index 69c16a9fb09..52f6fd93823 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -1439,7 +1439,6 @@ class Categorie extends CommonObject if (! $this->db->query($sql2)) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this).'::setMultiLangs error='.$this->error, LOG_ERR); return -1; } } @@ -1465,7 +1464,6 @@ class Categorie extends CommonObject if (! $this->db->query($sql2)) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this).'::setMultiLangs error='.$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index 03d3f7b8025..0e2301b1110 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -252,7 +252,6 @@ class ActionComm extends CommonObject { $this->db->rollback(); $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::add ".$this->error,LOG_ERR); return -1; } @@ -415,7 +414,6 @@ class ActionComm extends CommonObject { $this->db->rollback(); $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error,LOG_ERR); return -1; } } @@ -526,7 +524,6 @@ class ActionComm extends CommonObject { $this->db->rollback(); $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::update ".$this->error,LOG_ERR); return -1; } } @@ -976,7 +973,6 @@ class ActionComm extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::build_exportfile ".$this->db->lasterror(), LOG_ERR); return -1; } diff --git a/htdocs/comm/mailing/class/mailing.class.php b/htdocs/comm/mailing/class/mailing.class.php index 2cb298bff3f..3fd8f61bfe5 100644 --- a/htdocs/comm/mailing/class/mailing.class.php +++ b/htdocs/comm/mailing/class/mailing.class.php @@ -122,7 +122,6 @@ class Mailing extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog("Mailing::Create ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -132,7 +131,6 @@ class Mailing extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog("Mailing::Create ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -166,7 +164,6 @@ class Mailing extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog("Mailing::Update ".$this->error, LOG_ERR); return -1; } } @@ -348,7 +345,6 @@ class Mailing extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog("Mailing::createFromClone ".$this->error, LOG_ERR); return -1; } @@ -392,7 +388,6 @@ class Mailing extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog("Mailing::Valid ".$this->error, LOG_ERR); return -1; } } @@ -418,7 +413,6 @@ class Mailing extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog("Mailing::Valid ".$this->error, LOG_ERR); return -1; } } @@ -445,7 +439,6 @@ class Mailing extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog("Mailing::Valid ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 52bc77afa71..38c4f17177c 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -443,7 +443,6 @@ class Propal extends CommonObject else { $this->error=$this->db->error(); - dol_syslog("Error sql=$sql, error=".$this->error,LOG_ERR); $this->db->rollback(); return -1; } @@ -597,7 +596,6 @@ class Propal extends CommonObject { $this->error=$this->db->error(); $this->db->rollback(); - dol_syslog(get_class($this)."::updateline Error=".$this->error, LOG_ERR); return -1; } } @@ -888,7 +886,6 @@ class Propal extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::create -2 ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } @@ -896,7 +893,6 @@ class Propal extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::create -1 ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -1226,7 +1222,6 @@ class Propal extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::fetch Error ".$this->error, LOG_ERR); return -1; } @@ -1246,7 +1241,6 @@ class Propal extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::fetch Error ".$this->error, LOG_ERR); return -1; } } @@ -1420,7 +1414,6 @@ class Propal extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::set_date ".$this->error, LOG_ERR); return -1; } } @@ -1447,7 +1440,6 @@ class Propal extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::set_echeance Erreur SQL".$this->error, LOG_ERR); return -1; } } @@ -2133,7 +2125,6 @@ class Propal extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); $this->db->rollback(); return 0; } @@ -2141,7 +2132,6 @@ class Propal extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); $this->db->rollback(); return -3; } @@ -2149,7 +2139,6 @@ class Propal extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } @@ -2157,7 +2146,6 @@ class Propal extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -2684,7 +2672,6 @@ class Propal extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::getLinesArray Error sql=$sql, error=".$this->error,LOG_ERR); return -1; } } @@ -3115,7 +3102,6 @@ class PropaleLigne extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::update Error ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } @@ -3149,7 +3135,6 @@ class PropaleLigne extends CommonObject else { $this->error=$this->db->error(); - dol_syslog("PropaleLigne::update_total Error ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 14958b6ed2d..566c571e53a 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -394,7 +394,6 @@ class Commande extends CommonOrder { $this->error=$this->db->error(); $this->db->rollback(); - dol_syslog($this->error, LOG_ERR); return -1; } } @@ -506,7 +505,6 @@ class Commande extends CommonOrder else { $this->error=$this->db->lasterror(); - dol_syslog($this->error, LOG_ERR); $this->db->rollback(); return -1; @@ -587,7 +585,6 @@ class Commande extends CommonOrder { $this->error=$this->db->error(); $this->db->rollback(); - dol_syslog($this->error, LOG_ERR); return -1; } } @@ -1406,7 +1403,6 @@ class Commande extends CommonOrder } else { - dol_syslog(get_class($this).'::fetch Error rowid='.$id, LOG_ERR); $this->error=$this->db->error(); return -1; } @@ -1574,7 +1570,6 @@ class Commande extends CommonOrder else { $this->error=$this->db->error(); - dol_syslog('Commande::fetch_lines: Error '.$this->error, LOG_ERR); return -3; } } @@ -1654,7 +1649,6 @@ class Commande extends CommonOrder else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::loadExpeditions ".$this->error,LOG_ERR); return -1; } @@ -1911,7 +1905,6 @@ class Commande extends CommonOrder else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::set_date ".$this->error,LOG_ERR); return -1; } } @@ -1946,7 +1939,6 @@ class Commande extends CommonOrder else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::set_date_livraison ".$this->error,LOG_ERR); return -1; } } @@ -2180,7 +2172,6 @@ class Commande extends CommonOrder else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this).'::set_ref_client Erreur '.$this->error.' - '.$sql, LOG_ERR); return -2; } } @@ -2227,7 +2218,6 @@ class Commande extends CommonOrder else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::classifyBilled ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } @@ -2235,7 +2225,6 @@ class Commande extends CommonOrder else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::classifyBilled Error ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -2398,7 +2387,6 @@ class Commande extends CommonOrder $this->error=$this->db->lasterror(); $this->errors=array($this->db->lasterror()); $this->db->rollback(); - dol_syslog(get_class($this)."::updateline Error=".$this->error, LOG_ERR); return -1; } } @@ -2446,7 +2434,6 @@ class Commande extends CommonOrder dol_syslog(get_class($this)."::delete", LOG_DEBUG); if (! $this->db->query($sql) ) { - dol_syslog(get_class($this)."::delete error", LOG_ERR); $error++; } @@ -2455,7 +2442,6 @@ class Commande extends CommonOrder dol_syslog(get_class($this)."::delete", LOG_DEBUG); if (! $this->db->query($sql) ) { - dol_syslog(get_class($this)."::delete error", LOG_ERR); $error++; } @@ -2517,7 +2503,6 @@ class Commande extends CommonOrder else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -2990,7 +2975,6 @@ class Commande extends CommonOrder else { $this->error=$this->db->error(); - dol_syslog("Error sql=$sql, error=".$this->error,LOG_ERR); return -1; } } @@ -3182,7 +3166,6 @@ class OrderLine extends CommonOrderLine else { $this->error=$this->db->lasterror(); - dol_syslog("OrderLine::delete ".$this->error, LOG_ERR); return -1; } } @@ -3299,7 +3282,6 @@ class OrderLine extends CommonOrderLine else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::insert Error ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } @@ -3407,7 +3389,6 @@ class OrderLine extends CommonOrderLine else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::update Error ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } @@ -3446,7 +3427,6 @@ class OrderLine extends CommonOrderLine else { $this->error=$this->db->error(); - dol_syslog("OrderLine::update_total Error ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } diff --git a/htdocs/compta/bank/class/account.class.php b/htdocs/compta/bank/class/account.class.php index 48e175b0c2e..d99489f6920 100644 --- a/htdocs/compta/bank/class/account.class.php +++ b/htdocs/compta/bank/class/account.class.php @@ -155,7 +155,6 @@ class Account extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::add_url_line ".$this->error, LOG_ERR); return -1; } } @@ -330,7 +329,6 @@ class Account extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::addline ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } @@ -437,7 +435,6 @@ class Account extends CommonObject if (! $resql) { $this->error=$this->db->lasterror(); - dol_syslog($this->error, LOG_ERR); return -3; } } @@ -1251,7 +1248,6 @@ class AccountLine extends CommonObject { $this->db->rollback(); $this->error=$this->db->error(); - dol_syslog(get_class($this)."::update ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/compta/bank/class/bankcateg.class.php b/htdocs/compta/bank/class/bankcateg.class.php index 1bcadc4eb1a..a1bc0191175 100644 --- a/htdocs/compta/bank/class/bankcateg.class.php +++ b/htdocs/compta/bank/class/bankcateg.class.php @@ -160,7 +160,6 @@ class BankCateg // extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/compta/facture/class/facture-rec.class.php b/htdocs/compta/facture/class/facture-rec.class.php index c059e7ef2fd..f6c0ab1a481 100644 --- a/htdocs/compta/facture/class/facture-rec.class.php +++ b/htdocs/compta/facture/class/facture-rec.class.php @@ -283,7 +283,6 @@ class FactureRec extends Facture else { $this->error=$this->db->error(); - dol_syslog('Facture::Fetch Error '.$this->error, LOG_ERR); return -1; } } @@ -358,7 +357,6 @@ class FactureRec extends Facture else { $this->error=$this->db->error(); - dol_syslog('Facture::fetch_lines: Error '.$this->error, LOG_ERR); return -3; } } diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 94976d08e41..edf2add4610 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -914,7 +914,6 @@ class Facture extends CommonInvoice if ($result < 0) { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::fetch Error ".$this->error, LOG_ERR); return -3; } return 1; @@ -1014,7 +1013,6 @@ class Facture extends CommonInvoice else { $this->error=$this->db->error(); - dol_syslog(get_class($this).'::fetch_lines '.$this->error,LOG_ERR); return -3; } } @@ -2141,7 +2139,6 @@ class Facture extends CommonInvoice else { $this->error=$this->db->error(); - dol_syslog("Error sql=$sql, error=".$this->error,LOG_ERR); $this->db->rollback(); return -1; } @@ -2325,7 +2322,6 @@ class Facture extends CommonInvoice if (! $result) { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::deleteline Error ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -2822,7 +2818,6 @@ class Facture extends CommonInvoice else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::list_replacable_invoices ".$this->error, LOG_ERR); return -1; } } @@ -2878,7 +2873,6 @@ class Facture extends CommonInvoice else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::list_avoir_invoices ".$this->error, LOG_ERR); return -1; } } @@ -3650,7 +3644,6 @@ class FactureLigne extends CommonInvoiceLine else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::insert Error ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } @@ -3761,7 +3754,6 @@ class FactureLigne extends CommonInvoiceLine else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::update Error ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } @@ -3839,7 +3831,6 @@ class FactureLigne extends CommonInvoiceLine else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::update_total Error ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } diff --git a/htdocs/compta/facture/class/paymentterm.class.php b/htdocs/compta/facture/class/paymentterm.class.php index b137c0da85c..cdc935cde01 100644 --- a/htdocs/compta/facture/class/paymentterm.class.php +++ b/htdocs/compta/facture/class/paymentterm.class.php @@ -213,7 +213,6 @@ class PaymentTerm // extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -250,7 +249,6 @@ class PaymentTerm // extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::getDefaultId ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/compta/localtax/class/localtax.class.php b/htdocs/compta/localtax/class/localtax.class.php index 5580cbe70a3..3792d93cec4 100644 --- a/htdocs/compta/localtax/class/localtax.class.php +++ b/htdocs/compta/localtax/class/localtax.class.php @@ -113,7 +113,6 @@ class Localtax extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::create ".$this->error, LOG_ERR); return -1; } } @@ -157,7 +156,6 @@ class Localtax extends CommonObject if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::update ".$this->error, LOG_ERR); return -1; } @@ -232,7 +230,6 @@ class Localtax extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -258,7 +255,6 @@ class Localtax extends CommonObject if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); return -1; } diff --git a/htdocs/compta/paiement/cheque/class/remisecheque.class.php b/htdocs/compta/paiement/cheque/class/remisecheque.class.php index e6f8963b3e9..990238cf543 100644 --- a/htdocs/compta/paiement/cheque/class/remisecheque.class.php +++ b/htdocs/compta/paiement/cheque/class/remisecheque.class.php @@ -250,7 +250,6 @@ class RemiseCheque extends CommonObject $this->errno = -1; $this->error=$this->db->lasterror(); $this->errno=$this->db->lasterrno(); - dol_syslog("RemiseCheque::Create Error ".$this->error, LOG_ERR); } if (! $this->errno && ! empty($conf->global->MAIN_DISABLEDRAFTSTATUS)) @@ -715,7 +714,6 @@ class RemiseCheque extends CommonObject else { $this->error=$this->db->error(); - dol_syslog("RemiseCheque::set_date ".$this->error,LOG_ERR); return -1; } } @@ -750,7 +748,6 @@ class RemiseCheque extends CommonObject else { $this->error=$this->db->error(); - dol_syslog("RemiseCheque::set_number ".$this->error,LOG_ERR); return -1; } } diff --git a/htdocs/compta/paiement/class/paiement.class.php b/htdocs/compta/paiement/class/paiement.class.php index 7e0626593cb..190c5c979c1 100644 --- a/htdocs/compta/paiement/class/paiement.class.php +++ b/htdocs/compta/paiement/class/paiement.class.php @@ -227,7 +227,6 @@ class Paiement extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this).'::Create insert paiement_facture error='.$this->error, LOG_ERR); $error++; } } @@ -250,7 +249,6 @@ class Paiement extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this).'::Create insert paiement error='.$this->error, LOG_ERR); $error++; } @@ -592,7 +590,6 @@ class Paiement extends CommonObject else { $this->error='Error -1 '.$this->db->error(); - dol_syslog(get_class($this)."::update_date ".$this->error, LOG_ERR); return -2; } } @@ -623,7 +620,6 @@ class Paiement extends CommonObject else { $this->error='Error -1 '.$this->db->error(); - dol_syslog(get_class($this)."::update_num ".$this->error, LOG_ERR); return -2; } } diff --git a/htdocs/compta/prelevement/class/bonprelevement.class.php b/htdocs/compta/prelevement/class/bonprelevement.class.php index 759981b696e..39ed330b437 100644 --- a/htdocs/compta/prelevement/class/bonprelevement.class.php +++ b/htdocs/compta/prelevement/class/bonprelevement.class.php @@ -556,8 +556,6 @@ class BonPrelevement extends CommonObject } else { - dol_syslog(get_class($this)."::set_infotrans Erreur 1", LOG_ERR); - dol_syslog($this->db->error()); $error++; } diff --git a/htdocs/compta/salaries/class/paymentsalary.class.php b/htdocs/compta/salaries/class/paymentsalary.class.php index 76a781bfe9b..c2fc0c9c23a 100644 --- a/htdocs/compta/salaries/class/paymentsalary.class.php +++ b/htdocs/compta/salaries/class/paymentsalary.class.php @@ -119,7 +119,6 @@ class PaymentSalary extends CommonObject if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::update ".$this->error, LOG_ERR); return -1; } @@ -209,7 +208,6 @@ class PaymentSalary extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -235,7 +233,6 @@ class PaymentSalary extends CommonObject if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); return -1; } diff --git a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php index 95e796f98a0..972fa762b96 100644 --- a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php +++ b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php @@ -139,7 +139,6 @@ class PaymentSocialContribution extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::create ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -209,7 +208,6 @@ class PaymentSocialContribution extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -569,7 +567,6 @@ class PaymentSocialContribution extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::update_fk_bank ".$this->error, LOG_ERR); return 0; } } diff --git a/htdocs/compta/tva/class/tva.class.php b/htdocs/compta/tva/class/tva.class.php index 386158d1c7e..b19c1cf627d 100644 --- a/htdocs/compta/tva/class/tva.class.php +++ b/htdocs/compta/tva/class/tva.class.php @@ -133,7 +133,6 @@ class Tva extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::create ".$this->error, LOG_ERR); return -1; } } @@ -183,7 +182,6 @@ class Tva extends CommonObject if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::update ".$this->error, LOG_ERR); return -1; } @@ -265,7 +263,6 @@ class Tva extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -291,7 +288,6 @@ class Tva extends CommonObject if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); return -1; } diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php index 58a7902b51a..95f949b123f 100644 --- a/htdocs/contact/class/contact.class.php +++ b/htdocs/contact/class/contact.class.php @@ -598,7 +598,6 @@ class Contact extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } @@ -623,7 +622,6 @@ class Contact extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -639,7 +637,6 @@ class Contact extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -684,7 +681,6 @@ class Contact extends CommonObject else { $this->error=$this->db->error()." - ".$sql; - dol_syslog(get_class($this)."::load_ref_elements Error ".$this->error, LOG_ERR); return -1; } } @@ -757,7 +753,6 @@ class Contact extends CommonObject $error++; $this->error .= $this->db->lasterror(); $errorflag=-1; - dol_syslog(get_class($this)."::delete error ".$errorflag." ".$this->error, LOG_ERR); } } diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php index b8e57ce2385..049825578e7 100644 --- a/htdocs/contrat/class/contrat.class.php +++ b/htdocs/contrat/class/contrat.class.php @@ -171,7 +171,6 @@ class Contrat extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::active_line error ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -219,7 +218,6 @@ class Contrat extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::close_line error ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -794,7 +792,6 @@ class Contrat extends CommonObject else { $this->error=$langs->trans("UnknownError: ".$this->db->error()." -", LOG_DEBUG); - dol_syslog(get_class($this)."::create - 10 - ".$this->error, LOG_ERR); $this->db->rollback(); return -1; @@ -939,7 +936,6 @@ class Contrat extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::delete ERROR ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -1261,7 +1257,6 @@ class Contrat extends CommonObject if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); return -1; } @@ -1995,7 +1990,6 @@ class ContratLigne else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -2108,7 +2102,6 @@ class ContratLigne else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::update ".$this->error, LOG_ERR); return -1; } @@ -2156,7 +2149,6 @@ class ContratLigne else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::update_total Error ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 8ff3b515d94..2b9761264c0 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -241,7 +241,6 @@ abstract class CommonObject else { $this->error=$this->db->error(); - dol_syslog($this->error,LOG_ERR); return -1; } } @@ -264,7 +263,6 @@ abstract class CommonObject if ($this->add_contact($contact['id'], $contact['fk_c_type_contact'], $contact['source']) < 0) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::copy_contact error=".$this->error, LOG_ERR); return -1; } } @@ -336,7 +334,6 @@ abstract class CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete_contact error=".$this->error, LOG_ERR); return -1; } } @@ -369,7 +366,6 @@ abstract class CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete_linked_contact error=".$this->error, LOG_ERR); return -1; } } @@ -576,7 +572,6 @@ abstract class CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::getIdContact ".$this->error, LOG_ERR); return null; } @@ -1454,7 +1449,6 @@ abstract class CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::update_ref_ext error=".$this->error, LOG_ERR); return -1; } } @@ -1494,7 +1488,6 @@ abstract class CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::update_note error=".$this->error, LOG_ERR); return -1; } } @@ -1664,7 +1657,6 @@ abstract class CommonObject { $error++; $this->error=$this->db->error(); - dol_syslog(get_class($this)."::update_price error=".$this->error,LOG_ERR); } } @@ -1920,7 +1912,6 @@ abstract class CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::updateObjectLinked error=".$this->error, LOG_ERR); return -1; } } @@ -1974,7 +1965,6 @@ abstract class CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::deleteObjectLinked error=".$this->error, LOG_ERR); return -1; } } @@ -2011,7 +2001,6 @@ abstract class CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::setStatut ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -2262,7 +2251,6 @@ abstract class CommonObject if (! $resql) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::update ".$this->error,LOG_ERR); $this->db->rollback(); return -1; } @@ -2435,7 +2423,6 @@ abstract class CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete error -1 ".$this->error, LOG_ERR); return -1; } } @@ -2505,7 +2492,6 @@ abstract class CommonObject $i++; } } - else dol_syslog(get_class($this).'::getTotalDiscount '.$this->db->lasterror(), LOG_ERR); //print $total_discount; exit; return price2num($total_discount); @@ -2531,7 +2517,6 @@ abstract class CommonObject if (! $resql) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::setExtraParameters ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -3378,7 +3363,6 @@ abstract class CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete_resource error=".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/core/class/cpays.class.php b/htdocs/core/class/cpays.class.php index 5e32b9bad22..e75f8a75a1a 100644 --- a/htdocs/core/class/cpays.class.php +++ b/htdocs/core/class/cpays.class.php @@ -179,7 +179,6 @@ class Cpays // extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/core/class/ctypent.class.php b/htdocs/core/class/ctypent.class.php index 057e23892b4..dd039b71015 100644 --- a/htdocs/core/class/ctypent.class.php +++ b/htdocs/core/class/ctypent.class.php @@ -184,7 +184,6 @@ class Ctypent // extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/core/class/discount.class.php b/htdocs/core/class/discount.class.php index 49ff65a0e2c..f0291c9d567 100644 --- a/htdocs/core/class/discount.class.php +++ b/htdocs/core/class/discount.class.php @@ -301,7 +301,6 @@ class DiscountAbsolute else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::link_to_invoice ".$this->error,LOG_ERR); return -3; } } @@ -328,7 +327,6 @@ class DiscountAbsolute else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::unlink_invoice ".$this->error,LOG_ERR); return -3; } } diff --git a/htdocs/core/class/events.class.php b/htdocs/core/class/events.class.php index 98e4b101669..ba4dcfb94f6 100644 --- a/htdocs/core/class/events.class.php +++ b/htdocs/core/class/events.class.php @@ -142,7 +142,6 @@ class Events // extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::create ".$this->error, LOG_ERR); return -1; } } @@ -179,7 +178,6 @@ class Events // extends CommonObject if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::update ".$this->error, LOG_ERR); return -1; } return 1; @@ -233,7 +231,6 @@ class Events // extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -257,7 +254,6 @@ class Events // extends CommonObject if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); return -1; } diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 6ae98a3c8d2..e7363c39a43 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -286,7 +286,6 @@ class ExtraFields if ($result < 0) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); } $result=$this->delete_label($attrname,$elementtype); diff --git a/htdocs/core/class/infobox.class.php b/htdocs/core/class/infobox.class.php index 43c057ac859..41380593375 100644 --- a/htdocs/core/class/infobox.class.php +++ b/htdocs/core/class/infobox.class.php @@ -163,7 +163,6 @@ class InfoBox { //dol_print_error($db); $error=$db->lasterror(); - dol_syslog(get_class()."::listBoxes Error ".$error, LOG_ERR); } return $boxes; diff --git a/htdocs/core/class/link.class.php b/htdocs/core/class/link.class.php index d9857a4730c..4316d56f4fe 100644 --- a/htdocs/core/class/link.class.php +++ b/htdocs/core/class/link.class.php @@ -222,7 +222,6 @@ class Link extends CommonObject else { $this->error = $langs->trans("Error sql = " . $sql); - dol_syslog(get_class($this) . "::Update fails update = " . $this->error, LOG_ERR); $result = -2; } $this->db->rollback(); @@ -324,7 +323,6 @@ class Link extends CommonObject } } else { $this->error=$this->db->lasterror(); - dol_syslog($this->error, LOG_ERR); return -1; } } @@ -352,7 +350,6 @@ class Link extends CommonObject { $error++; $this->error = $this->db->lasterror(); - dol_syslog(get_class($this)."::delete error -4 " . $this->error, LOG_ERR); } diff --git a/htdocs/core/class/menubase.class.php b/htdocs/core/class/menubase.class.php index 60375f8c283..aa43c545c8d 100644 --- a/htdocs/core/class/menubase.class.php +++ b/htdocs/core/class/menubase.class.php @@ -174,7 +174,6 @@ class Menubase else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::create ".$this->error, LOG_ERR); return -1; } } @@ -237,7 +236,6 @@ class Menubase if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::update ".$this->error, LOG_ERR); return -1; } @@ -311,7 +309,6 @@ class Menubase else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -335,7 +332,6 @@ class Menubase if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); return -1; } diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index d3ae00c495e..7aa09574ed8 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -688,7 +688,6 @@ class Translate else { $this->error=$db->lasterror(); - dol_syslog(get_class($this).'::getLabelFromKey error='.$this->error,LOG_ERR); return -1; } } diff --git a/htdocs/core/lib/admin.lib.php b/htdocs/core/lib/admin.lib.php index 75cf39feb22..a69a021c03b 100644 --- a/htdocs/core/lib/admin.lib.php +++ b/htdocs/core/lib/admin.lib.php @@ -499,7 +499,6 @@ function dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $not else { $error=$db->lasterror(); - dol_syslog("admin.lib::dolibarr_set_const ".$error, LOG_ERR); $db->rollback(); return -1; } diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index bcbfc62f354..c9400c4f221 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -4209,7 +4209,6 @@ function dol_getIdFromCode($db,$key,$tablename,$fieldkey='code',$fieldid='id') } else { - dol_syslog("dol_getIdFromCode error=".$db->lasterror(), LOG_ERR); return -1; } } diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php index f8456b4cf23..1cbf5f08009 100644 --- a/htdocs/core/modules/DolibarrModules.class.php +++ b/htdocs/core/modules/DolibarrModules.class.php @@ -120,7 +120,6 @@ abstract class DolibarrModules if (! $ignoreerror) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::_init Error ".$this->error, LOG_ERR); $err++; } else @@ -587,7 +586,6 @@ abstract class DolibarrModules else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::insert_boxes ".$this->error, LOG_ERR); $this->db->rollback(); } } @@ -596,7 +594,6 @@ abstract class DolibarrModules else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::insert_boxes ".$this->error, LOG_ERR); $err++; } } @@ -638,7 +635,6 @@ abstract class DolibarrModules if (! $resql) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete_boxes ".$this->error, LOG_ERR); $err++; } @@ -651,7 +647,6 @@ abstract class DolibarrModules if (! $resql) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete_boxes ".$this->error, LOG_ERR); $err++; } } @@ -679,7 +674,6 @@ abstract class DolibarrModules if (! $this->db->query($sql)) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete_tabs ".$this->error, LOG_ERR); $err++; } @@ -786,7 +780,6 @@ abstract class DolibarrModules 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); $err++; } } @@ -829,7 +822,6 @@ abstract class DolibarrModules if (! $this->db->query($sql)) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete_const ".$this->error, LOG_ERR); $err++; } } @@ -910,7 +902,6 @@ abstract class DolibarrModules if ($this->db->errno() != "DB_ERROR_RECORD_ALREADY_EXISTS") { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::insert_permissions errno = ".$this->db->errno()." error ".$this->error, LOG_ERR); $err++; break; } @@ -959,7 +950,6 @@ abstract class DolibarrModules else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::insert_permissions ".$this->error, LOG_ERR); $err++; } @@ -985,7 +975,6 @@ abstract class DolibarrModules if (! $this->db->query($sql)) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete_permissions ".$this->error, LOG_ERR); $err++; } @@ -1117,7 +1106,6 @@ abstract class DolibarrModules if (! $resql) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete_menus ".$this->error, LOG_ERR); $err++; } @@ -1218,7 +1206,6 @@ abstract class DolibarrModules else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::insert_dirs ".$this->error, LOG_ERR); $err++; } @@ -1245,7 +1232,6 @@ abstract class DolibarrModules if (! $this->db->query($sql)) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete_dirs ".$this->error, LOG_ERR); $err++; } @@ -1326,7 +1312,6 @@ abstract class DolibarrModules { $error++; $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::insert_const_".$key." ".$this->error, LOG_ERR); } else { @@ -1365,7 +1350,6 @@ abstract class DolibarrModules if (! $this->db->query($sql)) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete_const_".$key." ".$this->error, LOG_ERR); $err++; } } diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php index 9186e51b954..864d7af17d7 100644 --- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php @@ -624,7 +624,6 @@ class pdf_crabe extends ModelePDFFactures else { $this->error=$this->db->lasterror(); - dol_syslog($this->db,$this->error, LOG_ERR); return -1; } @@ -663,7 +662,6 @@ class pdf_crabe extends ModelePDFFactures else { $this->error=$this->db->lasterror(); - dol_syslog($this->db,$this->error, LOG_ERR); return -1; } diff --git a/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php b/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php index ead49d7de98..848778275eb 100644 --- a/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php +++ b/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php @@ -861,7 +861,6 @@ class pdf_canelle extends ModelePDFSuppliersInvoices else { $this->error=$this->db->lasterror(); - dol_syslog($this->db,$this->error, LOG_ERR); return -1; } diff --git a/htdocs/cron/class/cronjob.class.php b/htdocs/cron/class/cronjob.class.php index 8b9704cfb83..23313d27f13 100644 --- a/htdocs/cron/class/cronjob.class.php +++ b/htdocs/cron/class/cronjob.class.php @@ -356,7 +356,6 @@ class Cronjob extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -490,7 +489,6 @@ class Cronjob extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -836,7 +834,6 @@ class Cronjob extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/ecm/class/ecmdirectory.class.php b/htdocs/ecm/class/ecmdirectory.class.php index d5b46b90c08..87f3bcd59ba 100644 --- a/htdocs/ecm/class/ecmdirectory.class.php +++ b/htdocs/ecm/class/ecmdirectory.class.php @@ -173,7 +173,6 @@ class EcmDirectory // extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::create ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -216,7 +215,6 @@ class EcmDirectory // extends CommonObject { $error++; $this->error="Error ".$this->db->lasterror(); - dol_syslog("EcmDirectories::update ".$this->error, LOG_ERR); } if (! $error && ! $notrigger) @@ -262,7 +260,6 @@ class EcmDirectory // extends CommonObject if (! $resql) { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::changeNbOfFiles ".$this->error, LOG_ERR); return -1; } @@ -318,7 +315,6 @@ class EcmDirectory // extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -354,7 +350,6 @@ class EcmDirectory // extends CommonObject { $this->db->rollback(); $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); return -2; } @@ -698,7 +693,6 @@ class EcmDirectory // extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::refreshcachenboffile ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index 2a1dc833bdf..ee0342bbda1 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -598,7 +598,6 @@ class Expedition extends CommonObject { $this->db->rollback(); $this->error=$this->db->error(); - dol_syslog(get_class($this)."::valid ".$this->error, LOG_ERR); return -2; } } @@ -1138,7 +1137,6 @@ class Expedition extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this).'::fetch_lines: Error '.$this->error, LOG_ERR); return -3; } } @@ -1332,7 +1330,6 @@ class Expedition extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::set_date_livraison ".$this->error,LOG_ERR); return -1; } } diff --git a/htdocs/expedition/class/expeditionbatch.class.php b/htdocs/expedition/class/expeditionbatch.class.php index a0a22fefdd6..62d23aaa7ff 100644 --- a/htdocs/expedition/class/expeditionbatch.class.php +++ b/htdocs/expedition/class/expeditionbatch.class.php @@ -91,7 +91,6 @@ class ExpeditionLigneBatch extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(__METHOD__ .$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/exports/class/export.class.php b/htdocs/exports/class/export.class.php index 9d6e0d51b4a..d332592da6d 100644 --- a/htdocs/exports/class/export.class.php +++ b/htdocs/exports/class/export.class.php @@ -638,7 +638,6 @@ class Export { $this->error=$this->db->lasterror(); $this->errno=$this->db->lasterrno(); - dol_syslog("Export::create error ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php index d1d569101fd..c7032b8eb46 100644 --- a/htdocs/fichinter/class/fichinter.class.php +++ b/htdocs/fichinter/class/fichinter.class.php @@ -201,7 +201,6 @@ class Fichinter extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::create ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -256,7 +255,6 @@ class Fichinter extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::update error ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -326,7 +324,6 @@ class Fichinter extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::fetch ".$this->error,LOG_ERR); return -1; } } @@ -361,7 +358,6 @@ class Fichinter extends CommonObject { $this->db->rollback(); $this->error=$this->db->lasterror(); - dol_syslog("Fichinter::setDraft ".$this->error,LOG_ERR); return -1; } } @@ -882,7 +878,6 @@ class Fichinter extends CommonObject else { $this->error=$this->db->error(); - dol_syslog($this->error, LOG_ERR); return -1; } } @@ -924,7 +919,6 @@ class Fichinter extends CommonObject else { $this->error=$this->db->error(); - dol_syslog("Error sql=$sql, error=".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -1214,7 +1208,6 @@ class FichinterLigne else { $this->error=$this->db->lasterror(); - dol_syslog("FichinterLigne::update Error ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -1222,7 +1215,6 @@ class FichinterLigne else { $this->error=$this->db->lasterror(); - dol_syslog("FichinterLigne::update Error ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -1266,7 +1258,6 @@ class FichinterLigne else { $this->error=$this->db->error(); - dol_syslog("FichinterLigne::update_total Error ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } @@ -1274,7 +1265,6 @@ class FichinterLigne else { $this->error=$this->db->error(); - dol_syslog("FichinterLigne::update Error ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 1c759ee323a..7ee44fe9ec0 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -294,7 +294,6 @@ class CommandeFournisseur extends CommonOrder else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::log ".$this->error, LOG_ERR); return -1; } } @@ -401,7 +400,6 @@ class CommandeFournisseur extends CommonOrder } else { - dol_syslog(get_class($this)."::valid ".$this->error, LOG_ERR); $this->db->rollback(); $this->error=$this->db->lasterror(); return -1; @@ -671,7 +669,6 @@ class CommandeFournisseur extends CommonOrder { $this->db->rollback(); $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::approve Error ",$this->error, LOG_ERR); return -1; } } @@ -820,7 +817,6 @@ class CommandeFournisseur extends CommonOrder } else { - dol_syslog(get_class($this)."::cCommande Error -1", LOG_ERR); $result = -1; } } @@ -968,7 +964,6 @@ class CommandeFournisseur extends CommonOrder else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::create: Failed -2 - ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } @@ -977,7 +972,6 @@ class CommandeFournisseur extends CommonOrder else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::create: Failed -1 - ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -1222,7 +1216,6 @@ class CommandeFournisseur extends CommonOrder { $this->error=$this->db->error(); $this->db->rollback(); - dol_syslog(get_class($this)."::addline ".$this->error, LOG_ERR); return -1; } } @@ -1467,7 +1460,6 @@ class CommandeFournisseur extends CommonOrder else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); $this->db->rollback(); return -$error; } @@ -1550,7 +1542,6 @@ class CommandeFournisseur extends CommonOrder { $this->db->rollback(); $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::Livraison Error ".$this->error, LOG_ERR); $result = -1; } } @@ -1593,7 +1584,6 @@ class CommandeFournisseur extends CommonOrder else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::set_date_livraison ".$this->error,LOG_ERR); return -1; } } @@ -1804,7 +1794,6 @@ class CommandeFournisseur extends CommonOrder else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::updateline ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -2109,7 +2098,6 @@ class CommandeFournisseurLigne else { $this->error=$this->db->error(); - dol_syslog("CommandeFournisseurLigne.class.php::update_total Error ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } diff --git a/htdocs/fourn/class/fournisseur.facture.class.php b/htdocs/fourn/class/fournisseur.facture.class.php index d6c8a9a4db7..1aa4735ebb2 100644 --- a/htdocs/fourn/class/fournisseur.facture.class.php +++ b/htdocs/fourn/class/fournisseur.facture.class.php @@ -414,7 +414,6 @@ class FactureFournisseur extends CommonInvoice if ($result < 0) { $this->error=$this->db->error(); - dol_syslog(get_class($this).'::fetch Error '.$this->error, LOG_ERR); return -3; } @@ -498,7 +497,6 @@ class FactureFournisseur extends CommonInvoice else { $this->error=$this->db->error(); - dol_syslog(get_class($this).'::fetch_lines: Error '.$this->error,LOG_ERR); return -3; } } @@ -738,7 +736,6 @@ class FactureFournisseur extends CommonInvoice else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); $this->db->rollback(); return -$error; } @@ -1265,7 +1262,6 @@ class FactureFournisseur extends CommonInvoice else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::updateline error=".$this->error, LOG_ERR); return -1; } } @@ -1311,7 +1307,6 @@ class FactureFournisseur extends CommonInvoice { $error++; $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); } } diff --git a/htdocs/fourn/class/fournisseur.product.class.php b/htdocs/fourn/class/fournisseur.product.class.php index 03bfa9b9a71..a384f6ea219 100644 --- a/htdocs/fourn/class/fournisseur.product.class.php +++ b/htdocs/fourn/class/fournisseur.product.class.php @@ -88,7 +88,6 @@ class ProductFournisseur extends Product if (! $resql2) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::remove_fournisseur ".$this->error, LOG_ERR); $ok=0; } @@ -130,7 +129,6 @@ class ProductFournisseur extends Product else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::remove_product_fournisseur_price ".$this->error,LOG_ERR); $this->db->rollback(); return -1; } @@ -371,7 +369,6 @@ class ProductFournisseur extends Product else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::fetch_product_fournisseur_price error=".$this->error, LOG_ERR); return -1; } } @@ -449,7 +446,6 @@ class ProductFournisseur extends Product else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::list_product_fournisseur_price error=".$this->error, LOG_ERR); return -1; } } @@ -513,7 +509,6 @@ class ProductFournisseur extends Product else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::find_min_price_product_fournisseur error=".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/fourn/class/paiementfourn.class.php b/htdocs/fourn/class/paiementfourn.class.php index 4d87adf424f..6fff76e2ca0 100644 --- a/htdocs/fourn/class/paiementfourn.class.php +++ b/htdocs/fourn/class/paiementfourn.class.php @@ -212,7 +212,6 @@ class PaiementFourn extends Paiement else { $this->error=$this->db->lasterror(); - dol_syslog('PaiementFourn::Create Error '.$this->error, LOG_ERR); $error++; } } diff --git a/htdocs/holiday/class/holiday.class.php b/htdocs/holiday/class/holiday.class.php index 9932f2d609c..8ff312202f3 100644 --- a/htdocs/holiday/class/holiday.class.php +++ b/htdocs/holiday/class/holiday.class.php @@ -238,7 +238,6 @@ class Holiday extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -351,7 +350,6 @@ class Holiday extends CommonObject { // Erreur SQL $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetchByUser ".$this->error, LOG_ERR); return -1; } } @@ -461,7 +459,6 @@ class Holiday extends CommonObject { // Erreur SQL $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetchAll ".$this->error, LOG_ERR); return -1; } } @@ -813,7 +810,6 @@ class Holiday extends CommonObject { // Erreur SQL $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::selectUserGroup ".$this->error, LOG_ERR); return -1; } @@ -869,7 +865,6 @@ class Holiday extends CommonObject // Erreur SQL $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::getConfCP ".$this->error, LOG_ERR); return -1; } } @@ -1101,7 +1096,6 @@ class Holiday extends CommonObject { // Erreur SQL $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetchUsers ".$this->error, LOG_ERR); return -1; } @@ -1139,7 +1133,6 @@ class Holiday extends CommonObject { // Erreur SQL $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetchUsers ".$this->error, LOG_ERR); return -1; } } @@ -1181,7 +1174,6 @@ class Holiday extends CommonObject { // Erreur SQL $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetchUsers ".$this->error, LOG_ERR); return -1; } @@ -1221,7 +1213,6 @@ class Holiday extends CommonObject { // Erreur SQL $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetchUsers ".$this->error, LOG_ERR); return -1; } } @@ -1307,7 +1298,6 @@ class Holiday extends CommonObject } else { // Erreur SQL $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::verifNbUsers ".$this->error, LOG_ERR); return -1; } @@ -1345,7 +1335,6 @@ class Holiday extends CommonObject } else { // Erreur SQL $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::verifNbUsers ".$this->error, LOG_ERR); return -1; } } @@ -1403,7 +1392,6 @@ class Holiday extends CommonObject { // Erreur SQL $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetchEventsCP ".$this->error, LOG_ERR); return -1; } } @@ -1728,7 +1716,6 @@ class Holiday extends CommonObject { // Erreur SQL $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetchLog ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/imports/class/import.class.php b/htdocs/imports/class/import.class.php index ff23bc12cc8..e4acc733a85 100644 --- a/htdocs/imports/class/import.class.php +++ b/htdocs/imports/class/import.class.php @@ -244,7 +244,6 @@ class Import { $this->error=$this->db->lasterror(); $this->errno=$this->db->lasterrno(); - dol_syslog(get_class($this)."::create error ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } diff --git a/htdocs/livraison/class/livraison.class.php b/htdocs/livraison/class/livraison.class.php index 83ca1a27b72..414d367f047 100644 --- a/htdocs/livraison/class/livraison.class.php +++ b/htdocs/livraison/class/livraison.class.php @@ -434,7 +434,6 @@ class Livraison extends CommonObject { $this->db->rollback(); $this->error=$this->db->error()." - sql=$sql"; - dol_syslog(get_class($this)."::valid ".$this->error, LOG_ERR); return -1; } } @@ -891,7 +890,6 @@ class Livraison extends CommonObject else { $this->error=$this->db->error()." - sql=$sqlSourceLine"; - dol_syslog(get_class($this)."::getRemainingDelivered ".$this->error, LOG_ERR); return -1; } } @@ -921,7 +919,6 @@ class Livraison extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::set_date_livraison ".$this->error,LOG_ERR); return -1; } } diff --git a/htdocs/opensurvey/class/opensurveysondage.class.php b/htdocs/opensurvey/class/opensurveysondage.class.php index b6cc0a0e6fc..8f3f3fccff8 100644 --- a/htdocs/opensurvey/class/opensurveysondage.class.php +++ b/htdocs/opensurvey/class/opensurveysondage.class.php @@ -237,7 +237,6 @@ class Opensurveysondage extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); $ret=-1; } diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 43731eb35f4..ca3ef6fcd7b 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -785,7 +785,6 @@ class Product extends CommonObject { $error++; $this->errors[] = $this->db->lasterror(); - dol_syslog(get_class($this).'::delete error '.$this->error, LOG_ERR); } } } @@ -1110,7 +1109,6 @@ class Product extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::get_buyprice ".$this->error, LOG_ERR); return -3; } } @@ -1118,7 +1116,6 @@ class Product extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::get_buyprice ".$this->error, LOG_ERR); return -2; } } @@ -2211,7 +2208,6 @@ class Product extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::add_fournisseur ".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/product/class/productbatch.class.php b/htdocs/product/class/productbatch.class.php index 78af2b01037..c124f9648e3 100644 --- a/htdocs/product/class/productbatch.class.php +++ b/htdocs/product/class/productbatch.class.php @@ -185,7 +185,6 @@ class Productbatch extends CommonObject else { $this->error = "Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -456,7 +455,6 @@ class Productbatch extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -517,7 +515,6 @@ class Productbatch extends CommonObject else { $error="Error ".$db->lasterror(); - dol_syslog("productbatch::find_all ".$error, LOG_ERR); return -1; } } diff --git a/htdocs/product/class/productcustomerprice.class.php b/htdocs/product/class/productcustomerprice.class.php index ceeb611df01..4cc6e7feb49 100644 --- a/htdocs/product/class/productcustomerprice.class.php +++ b/htdocs/product/class/productcustomerprice.class.php @@ -288,7 +288,6 @@ class Productcustomerprice extends CommonObject return 1; } else { $this->error = "Error " . $this->db->lasterror(); - dol_syslog(get_class($this) . "::fetch " . $this->error, LOG_ERR); return - 1; } } @@ -394,7 +393,6 @@ class Productcustomerprice extends CommonObject return $num; } else { $this->error = "Error " . $this->db->lasterror(); - dol_syslog(get_class($this) . "::fetch_all " . $this->error, LOG_ERR); return - 1; } } @@ -499,7 +497,6 @@ class Productcustomerprice extends CommonObject return $num; } else { $this->error = "Error " . $this->db->lasterror(); - dol_syslog(get_class($this) . "::fetch_all_log " . $this->error, LOG_ERR); return - 1; } } @@ -784,7 +781,6 @@ class Productcustomerprice extends CommonObject } } else { $this->error = "Error " . $this->db->lasterror(); - dol_syslog(get_class($this) . "::setPriceOnAffiliateThirdparty " . $this->error, LOG_ERR); return - 1; } } diff --git a/htdocs/product/stock/class/entrepot.class.php b/htdocs/product/stock/class/entrepot.class.php index b7061352fe6..e40ac4d10fa 100644 --- a/htdocs/product/stock/class/entrepot.class.php +++ b/htdocs/product/stock/class/entrepot.class.php @@ -169,7 +169,6 @@ class Entrepot extends CommonObject { $this->db->rollback(); $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::update ".$this->error, LOG_ERR); return -1; } } @@ -218,7 +217,6 @@ class Entrepot extends CommonObject { $this->db->rollback(); $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); return -1; } } @@ -226,7 +224,6 @@ class Entrepot extends CommonObject { $this->db->rollback(); $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete ".$this->error, LOG_ERR); return -1; } diff --git a/htdocs/product/stock/class/mouvementstock.class.php b/htdocs/product/stock/class/mouvementstock.class.php index b79473ee1b1..96c14f0f146 100644 --- a/htdocs/product/stock/class/mouvementstock.class.php +++ b/htdocs/product/stock/class/mouvementstock.class.php @@ -121,7 +121,6 @@ class MouvementStock else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::_create ".$this->error, LOG_ERR); $error = -1; } @@ -155,7 +154,6 @@ class MouvementStock else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::_create echec update ".$this->error, LOG_ERR); $error = -2; } } @@ -208,7 +206,6 @@ class MouvementStock if (! $resql) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::_create ".$this->error, LOG_ERR); $error = -3; } else if(empty($fk_product_stock)){ $fk_product_stock = $this->db->last_insert_id(MAIN_DB_PREFIX."product_stock"); @@ -235,7 +232,6 @@ class MouvementStock if (! $resql) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::_create ".$this->error, LOG_ERR); $error = -4; } } @@ -313,7 +309,6 @@ class MouvementStock } else { - dol_syslog(get_class($this)."::_createSubProduct ".$this->error, LOG_ERR); $error = -2; } diff --git a/htdocs/product/stock/lib/replenishment.lib.php b/htdocs/product/stock/lib/replenishment.lib.php index 21c3b4ee301..03d087b79a3 100644 --- a/htdocs/product/stock/lib/replenishment.lib.php +++ b/htdocs/product/stock/lib/replenishment.lib.php @@ -117,7 +117,6 @@ function ordered($product_id) } else { $error = $db->lasterror(); dol_print_error($db); - dol_syslog('replenish.php: ' . $error, LOG_ERR); return $langs->trans('error'); } diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 1525ef033b7..3c036d7c666 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -125,7 +125,6 @@ if ($action == 'order' && isset($_POST['valid'])) { $error=$db->lasterror(); dol_print_error($db); - dol_syslog('replenish.php: '.$error, LOG_ERR); } $db->free($resql); unset($_POST['fourn' . $i]); diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index 64a0946ecb1..1f54baa6a4f 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -261,7 +261,6 @@ class Project extends CommonObject else { $this->error = $this->db->lasterror(); - dol_syslog(get_class($this)."::Update error -2 " . $this->error, LOG_ERR); $result = -2; } } diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php index ff2934eb970..4dceee7981b 100644 --- a/htdocs/projet/class/task.class.php +++ b/htdocs/projet/class/task.class.php @@ -248,7 +248,6 @@ class Task extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -783,7 +782,6 @@ class Task extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::addTimeSpent error -1 ".$this->error,LOG_ERR); $ret = -1; } @@ -797,7 +795,6 @@ class Task extends CommonObject if (! $this->db->query($sql) ) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::addTimeSpent error -2 ".$this->error, LOG_ERR); $ret = -2; } } @@ -812,7 +809,6 @@ class Task extends CommonObject if (! $this->db->query($sql) ) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::addTimeSpent error -2 ".$this->error, LOG_ERR); $ret = -2; } } @@ -863,7 +859,6 @@ class Task extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetchTimeSpent ".$this->error, LOG_ERR); return -1; } } @@ -909,7 +904,6 @@ class Task extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::updateTimeSpent error -1 ".$this->error,LOG_ERR); $ret = -1; } @@ -925,7 +919,6 @@ class Task extends CommonObject if (! $this->db->query($sql) ) { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::addTimeSpent error -2 ".$this->error, LOG_ERR); $ret = -2; } } @@ -982,7 +975,6 @@ class Task extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::addTimeSpent error -3 ".$this->error, LOG_ERR); $result = -2; } } diff --git a/htdocs/resource/class/resource.class.php b/htdocs/resource/class/resource.class.php index 33d7af532b2..22ae2f36bde 100644 --- a/htdocs/resource/class/resource.class.php +++ b/htdocs/resource/class/resource.class.php @@ -315,7 +315,6 @@ class Resource extends CommonObject else { $this->error="Error ".$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -360,14 +359,12 @@ class Resource extends CommonObject } else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete_resource error=".$this->error, LOG_ERR); return -1; } } else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::delete_resource error=".$this->error, LOG_ERR); return -1; } } diff --git a/htdocs/societe/admin/societe.php b/htdocs/societe/admin/societe.php index 5bb227dde46..52a72e954ae 100644 --- a/htdocs/societe/admin/societe.php +++ b/htdocs/societe/admin/societe.php @@ -184,7 +184,7 @@ if ($action == 'setdoc') $sql.= ($label?"'".$db->escape($label)."'":'null').", "; $sql.= (! empty($scandir)?"'".$db->escape($scandir)."'":"null"); $sql.= ")"; - dol_syslog("societe.php ".$sql); + dol_syslog("societe.php", LOG_DEBUG); $result2=$db->query($sql); if ($result1 && $result2) { @@ -192,7 +192,6 @@ if ($action == 'setdoc') } else { - dol_syslog("societe.php ".$db->lasterror(), LOG_ERR); $db->rollback(); } } diff --git a/htdocs/societe/class/address.class.php b/htdocs/societe/class/address.class.php index 7d3f03f09d7..14b1605fdd9 100644 --- a/htdocs/societe/class/address.class.php +++ b/htdocs/societe/class/address.class.php @@ -317,7 +317,6 @@ class Address } else { - dol_syslog(get_class($this).'::Fetch '.$this->db->error(), LOG_ERR); $this->error=$this->db->error(); } } diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 9b017472198..e663eea312d 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -1087,7 +1087,6 @@ class Societe extends CommonObject } else { - dol_syslog($this->db->error(), LOG_ERR); $this->error=$this->db->error(); $result = -3; } @@ -1266,7 +1265,6 @@ class Societe extends CommonObject { $error++; $this->error .= $this->db->lasterror(); - dol_syslog(get_class($this)."::delete erreur -1 ".$this->error, LOG_ERR); } } @@ -1294,7 +1292,6 @@ class Societe extends CommonObject { $error++; $this->error = $this->db->lasterror(); - dol_syslog(get_class($this)."::delete erreur -2 ".$this->error, LOG_ERR); } } @@ -1319,7 +1316,6 @@ class Societe extends CommonObject { $error++; $this->error = $this->db->lasterror(); - dol_syslog(get_class($this)."::delete error -4 ".$this->error, LOG_ERR); } } @@ -2694,7 +2690,6 @@ class Societe extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::create_from_member - 1 - ".$this->error, LOG_ERR); $this->db->rollback(); return -1; diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 1ed5c1afc2c..394b5104d42 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -437,7 +437,6 @@ if (empty($reshook)) { $error++; $this->error .= $this->db->lasterror(); - dol_syslog(get_class($this)."::delete erreur -1 ".$this->error, LOG_ERR); } } diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index d96145c52f6..6acf3bbf6f2 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -278,7 +278,6 @@ class User extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::fetch Error -2, fails to get setup user", LOG_ERR); return -2; } } @@ -702,13 +701,15 @@ class User extends CommonObject $this->fetch($this->id); + dol_syslog(get_class($this)."::delete", LOG_DEBUG); + // Supprime droits $sql = "DELETE FROM ".MAIN_DB_PREFIX."user_rights WHERE fk_user = ".$this->id; + if (! $error && ! $this->db->query($sql)) { $error++; $this->error = $this->db->lasterror(); - dol_syslog(get_class($this)."::delete error -1 ".$this->error, LOG_ERR); } // Remove group @@ -717,7 +718,6 @@ class User extends CommonObject { $error++; $this->error = $this->db->lasterror(); - dol_syslog(get_class($this)."::delete error -2 ".$this->error, LOG_ERR); } // Si contact, supprime lien @@ -728,7 +728,6 @@ class User extends CommonObject { $error++; $this->error = $this->db->lasterror(); - dol_syslog(get_class($this)."::delete error -3 ".$this->error, LOG_ERR); } } @@ -752,7 +751,6 @@ class User extends CommonObject { $error++; $this->error = $this->db->lasterror(); - dol_syslog(get_class($this)."::delete error -5 ".$this->error, LOG_ERR); } } @@ -889,7 +887,6 @@ class User extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::create ".$this->error, LOG_ERR); $this->db->rollback(); return -2; } @@ -898,7 +895,6 @@ class User extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::create ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -965,7 +961,6 @@ class User extends CommonObject else { $this->error=$this->db->error(); - dol_syslog(get_class($this)."::create_from_contact ".$this->error, LOG_ERR); $this->db->rollback(); return -1; @@ -1034,7 +1029,6 @@ class User extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::create_from_member - 1 - ".$this->error, LOG_ERR); $this->db->rollback(); return -1; @@ -1050,8 +1044,6 @@ class User extends CommonObject else { // $this->error deja positionne - dol_syslog(get_class($this)."::create_from_member - 2 - ".$this->error, LOG_ERR); - $this->db->rollback(); return -2; } @@ -1294,7 +1286,6 @@ class User extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::update error=".$this->error,LOG_ERR); $this->db->rollback(); return -2; } @@ -1700,7 +1691,6 @@ class User extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::SetInGroup ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } @@ -1758,7 +1748,6 @@ class User extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::RemoveFromGroup ".$this->error, LOG_ERR); $this->db->rollback(); return -1; } diff --git a/htdocs/user/class/usergroup.class.php b/htdocs/user/class/usergroup.class.php index b8edc88f958..db459596a15 100644 --- a/htdocs/user/class/usergroup.class.php +++ b/htdocs/user/class/usergroup.class.php @@ -113,7 +113,6 @@ class UserGroup extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR); return -1; } } @@ -169,7 +168,6 @@ class UserGroup extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::listGroupsForUser ".$this->error, LOG_ERR); return -1; } } @@ -233,7 +231,6 @@ class UserGroup extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::listUsersForGroup ".$this->error, LOG_ERR); return -1; } } @@ -615,7 +612,6 @@ class UserGroup extends CommonObject else { $this->error=$this->db->lasterror(); - dol_syslog(get_class($this)."::create ".$this->error,LOG_ERR); return -1; } }