From ee623e72d31fca03cce29353f6fde84b46afa06f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 15 Nov 2008 07:40:25 +0000 Subject: [PATCH] "made some permanent error_logs configurable" --- phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php index f8e470bfb2..81745c99ed 100644 --- a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php +++ b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php @@ -1158,12 +1158,12 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper { if (!($stat = self::url_stat($path,0))) { - error_log(__METHOD__."($path,$rights,$owner,$fs_id) no such file or directory!"); + if (self::LOG_LEVEL) error_log(__METHOD__."($path,$rights,$owner,$fs_id) no such file or directory!"); return false; // $path not found } if (!egw_vfs::has_owner_rights($path,$stat)) // not group dir and user is eGW admin { - error_log(__METHOD__."($path,$rights,$owner,$fs_id) permission denied!"); + if (self::LOG_LEVEL) error_log(__METHOD__."($path,$rights,$owner,$fs_id) permission denied!"); return false; // permission denied } $fs_id = $stat['ino']; @@ -1195,7 +1195,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper { $GLOBALS['egw']->session->appsession('extended_acl',self::EACL_APPNAME,self::$extended_acl); } - //error_log(__METHOD__."($path,$rights,$owner,$fs_id)=".(int)$ret); + if (self::LOG_LEVEL > 1) error_log(__METHOD__."($path,$rights,$owner,$fs_id)=".(int)$ret); return $ret; }