Update syslog messages

This commit is contained in:
Rodolphe Quiedeville 2007-07-11 08:04:29 +00:00
parent b7163728d9
commit ee9417fb8d

View File

@ -1,5 +1,5 @@
<?PHP <?PHP
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2004-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -58,7 +58,7 @@ class FactureTel {
} }
else else
{ {
dolibarr_syslog("Erreur FactureTel::fetch() id=$id"); dolibarr_syslog("FactureTel::Fetch() Error aucune facture avec cet id=$id", LOG_ERR);
$result = -2; $result = -2;
} }
@ -67,8 +67,7 @@ class FactureTel {
else else
{ {
/* Erreur select SQL */ /* Erreur select SQL */
dolibarr_syslog("Erreur FactureTel::fetch(), sql error"); dolibarr_syslog("FactureTel::Fetch() Error SQL id=$id", LOG_ERR);
print $this->db->error();
$result = -1; $result = -1;
} }
@ -94,8 +93,9 @@ class FactureTel {
} }
else else
{ {
print $this->db->error(); /* Erreur select SQL */
print $sql ; dolibarr_syslog("FactureTel::affect_num_facture_compta() Error SQL id=$facid", LOG_ERR);
$result = -1;
return 1; return 1;
} }
} }