From d350a20e1f50f95a6c1aadb1381e3f00decbbfc9 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 3 Jun 2014 12:53:04 +0200 Subject: [PATCH] Less verbose debugging (also don't log private keys) Magicsig private keys were logged. That's probably not a good thing. MagicEnvelope full XML entries no longer spam the log either. --- plugins/OStatus/classes/Magicsig.php | 2 -- plugins/OStatus/lib/magicenvelope.php | 1 - 2 files changed, 3 deletions(-) diff --git a/plugins/OStatus/classes/Magicsig.php b/plugins/OStatus/classes/Magicsig.php index 2ee52dd347..289865a97f 100644 --- a/plugins/OStatus/classes/Magicsig.php +++ b/plugins/OStatus/classes/Magicsig.php @@ -224,8 +224,6 @@ class Magicsig extends Managed_DataObject */ public function loadKey($mod, $exp, $type = 'public') { - common_log(LOG_DEBUG, "Adding ".$type." key: (".$mod .', '. $exp .")"); - $rsa = new Crypt_RSA(); $rsa->setSignatureMode(CRYPT_RSA_SIGNATURE_PKCS1); $rsa->setHash($this->getHash()); diff --git a/plugins/OStatus/lib/magicenvelope.php b/plugins/OStatus/lib/magicenvelope.php index 1d18d6934a..4f240cc9b8 100644 --- a/plugins/OStatus/lib/magicenvelope.php +++ b/plugins/OStatus/lib/magicenvelope.php @@ -188,7 +188,6 @@ class MagicEnvelope $xs->elementEnd('me:env'); $string = $xs->getString(); - common_debug('MagicEnvelope XML: ' . $string); return $string; } -- 2.39.5