From: Mikael Nordfeldth Date: Tue, 3 Jun 2014 10:53:04 +0000 (+0200) Subject: Less verbose debugging (also don't log private keys) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d350a20e1f50f95a6c1aadb1381e3f00decbbfc9;p=quix0rs-gnu-social.git 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. --- 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; }