From ee9417fb8db9c4328e8f9c86342c4dddda2df71a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 11 Jul 2007 08:04:29 +0000 Subject: [PATCH] Update syslog messages --- htdocs/telephonie/facturetel.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/telephonie/facturetel.class.php b/htdocs/telephonie/facturetel.class.php index 955b09bebf5..c59766809a9 100644 --- a/htdocs/telephonie/facturetel.class.php +++ b/htdocs/telephonie/facturetel.class.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2007 Rodolphe Quiedeville * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -58,7 +58,7 @@ class FactureTel { } else { - dolibarr_syslog("Erreur FactureTel::fetch() id=$id"); + dolibarr_syslog("FactureTel::Fetch() Error aucune facture avec cet id=$id", LOG_ERR); $result = -2; } @@ -67,8 +67,7 @@ class FactureTel { else { /* Erreur select SQL */ - dolibarr_syslog("Erreur FactureTel::fetch(), sql error"); - print $this->db->error(); + dolibarr_syslog("FactureTel::Fetch() Error SQL id=$id", LOG_ERR); $result = -1; } @@ -94,8 +93,9 @@ class FactureTel { } else { - print $this->db->error(); - print $sql ; + /* Erreur select SQL */ + dolibarr_syslog("FactureTel::affect_num_facture_compta() Error SQL id=$facid", LOG_ERR); + $result = -1; return 1; } }