forked from extern/egroupware
"made some permanent error_logs configurable"
This commit is contained in:
parent
de231ebb28
commit
ee623e72d3
@ -1158,12 +1158,12 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
|||||||
{
|
{
|
||||||
if (!($stat = self::url_stat($path,0)))
|
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
|
return false; // $path not found
|
||||||
}
|
}
|
||||||
if (!egw_vfs::has_owner_rights($path,$stat)) // not group dir and user is eGW admin
|
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
|
return false; // permission denied
|
||||||
}
|
}
|
||||||
$fs_id = $stat['ino'];
|
$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);
|
$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;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user