summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/deletecard.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-06-24 22:22:58 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-06-24 22:25:32 +0200
commit3afbc3d2dc3c36145411926f1b59de0401fe6876 (patch)
tree6709de4a0a93c470f71906336e15938cceb2e7ca /apps/contacts/ajax/deletecard.php
parentf10c51193b0b661a187490f584cc41fbc7a67f01 (diff)
downloadnextcloud-server-3afbc3d2dc3c36145411926f1b59de0401fe6876.tar.gz
nextcloud-server-3afbc3d2dc3c36145411926f1b59de0401fe6876.zip
Add some DRYness to logging.
Diffstat (limited to 'apps/contacts/ajax/deletecard.php')
-rw-r--r--apps/contacts/ajax/deletecard.php19
1 files changed, 7 insertions, 12 deletions
diff --git a/apps/contacts/ajax/deletecard.php b/apps/contacts/ajax/deletecard.php
index 2a6bd277d19..1161c18abda 100644
--- a/apps/contacts/ajax/deletecard.php
+++ b/apps/contacts/ajax/deletecard.php
@@ -19,26 +19,21 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
-function bailOut($msg) {
- OCP\JSON::error(array('data' => array('message' => $msg)));
- OCP\Util::writeLog('contacts','ajax/saveproperty.php: '.$msg, OCP\Util::DEBUG);
- exit();
-}
-
// Check if we are a user
OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('contacts');
OCP\JSON::callCheck();
+require_once('loghandler.php');
// foreach($_SERVER as $key=>$value) {
// OCP\Util::writeLog('contacts','ajax/saveproperty.php: _SERVER: '.$key.'=>'.$value, OCP\Util::DEBUG);
// }
-foreach($_POST as $key=>$value) {
- OCP\Util::writeLog('contacts','ajax/saveproperty.php: _POST: '.$key.'=>'.print_r($value, true), OCP\Util::DEBUG);
-}
-foreach($_GET as $key=>$value) {
- OCP\Util::writeLog('contacts','ajax/saveproperty.php: _GET: '.$key.'=>'.print_r($value, true), OCP\Util::DEBUG);
-}
+// foreach($_POST as $key=>$value) {
+// debug($key.'=>'.print_r($value, true));
+// }
+// foreach($_GET as $key=>$value) {
+// debug($key.'=>'.print_r($value, true));
+// }
$id = isset($_POST['id'])?$_POST['id']:null;
if(!$id) {