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.
This commit is contained in:
Mikael Nordfeldth 2014-06-03 12:53:04 +02:00
parent aaef11077d
commit d350a20e1f
2 changed files with 0 additions and 3 deletions

View File

@ -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());

View File

@ -188,7 +188,6 @@ class MagicEnvelope
$xs->elementEnd('me:env');
$string = $xs->getString();
common_debug('MagicEnvelope XML: ' . $string);
return $string;
}