diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 353b53f698b..28b6d4638e0 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -1845,7 +1845,7 @@ class Product extends CommonObject if (! $id && ! $ref && ! $ref_ext) { $this->error='ErrorWrongParameters'; - dol_print_error(get_class($this)."::fetch ".$this->error); + dol_syslog(get_class($this)."::fetch ".$this->error); return -1; }