From 412b87462993cafa75842104de5a92d9ad71922a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 20 Jun 2016 18:34:35 +0200 Subject: [PATCH] quiten permanent error_log in CalDAV::handle_attach, only leave error_log for errors --- api/src/CalDAV.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/src/CalDAV.php b/api/src/CalDAV.php index 9e50d109d8..c0c62a93e2 100644 --- a/api/src/CalDAV.php +++ b/api/src/CalDAV.php @@ -1384,7 +1384,7 @@ class CalDAV extends HTTP_WebDAV_Server */ public static function handle_attach($app, $id, $attach, $delete_via_put=false) { - error_log(__METHOD__."('$app', $id, attach=".array2string($attach).", delete_via_put=".array2string($delete_via_put).')'); + //error_log(__METHOD__."('$app', $id, attach=".array2string($attach).", delete_via_put=".array2string($delete_via_put).')'); if (!Link::file_access($app, $id, Acl::EDIT)) { @@ -1447,17 +1447,17 @@ class CalDAV extends HTTP_WebDAV_Server } if (!($to = self::fopen_attachment($app, $id, $filename=$attr['params']['FILENAME'], $attr['params']['FMTTYPE'], $path)) || // Horde Icalendar does NOT decode automatic - ($copied=fwrite($to, $attr['params']['ENCODING'] == 'BASE64' ? base64_decode($attr['value']) : $attr['value'])) === false) + (/*$copied=*/fwrite($to, $attr['params']['ENCODING'] == 'BASE64' ? base64_decode($attr['value']) : $attr['value'])) === false) { error_log(__METHOD__."('$app', $id, ...) failed to add attachment ".array2string($attr).") "); continue; } fclose($to); - error_log(__METHOD__."('$app', $id, ...)) content-type={$attr['params']['FMTTYPE']}, filename=$filename: $path created $copied bytes copied"); + //error_log(__METHOD__."('$app', $id, ...)) content-type={$attr['params']['FMTTYPE']}, filename=$filename: $path created $copied bytes copied"); } else { - error_log(__METHOD__."('$app', $id, ...) unsupported URI attachment ".array2string($attr)); + //error_log(__METHOD__."('$app', $id, ...) unsupported URI attachment ".array2string($attr)); } } }