From 0513cbe655885339065430188db0cce221f9de27 Mon Sep 17 00:00:00 2001 From: fhenry Date: Tue, 23 Apr 2013 11:12:07 +0200 Subject: [PATCH] Add debug log (dol_syslog) --- htdocs/comm/list.php | 2 ++ htdocs/product/liste.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/list.php b/htdocs/comm/list.php index e7d6cd2811d..28696228e45 100755 --- a/htdocs/comm/list.php +++ b/htdocs/comm/list.php @@ -137,6 +137,8 @@ if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST)) $sql.= $db->order($sortfield,$sortorder); $sql.= $db->plimit($conf->liste_limit +1, $offset); +dol_syslog('comm:list.php: sql='.$sql,LOG_DEBUG); + $result = $db->query($sql); if ($result) { diff --git a/htdocs/product/liste.php b/htdocs/product/liste.php index 9fb9aa8de51..29188400653 100644 --- a/htdocs/product/liste.php +++ b/htdocs/product/liste.php @@ -169,7 +169,7 @@ else $sql.= $db->order($sortfield,$sortorder); $sql.= $db->plimit($limit + 1, $offset); - dol_syslog("sql=".$sql); + dol_syslog("product:list.php: sql=".$sql); $resql = $db->query($sql); if ($resql) {