Logging helper for bogus hmacs on PuSH in -- record the url & hub with the err msg to help tell what broke

This commit is contained in:
Brion Vibber 2010-12-20 10:46:23 -08:00
parent 39cad55711
commit dd48bdb1c4

View File

@ -487,7 +487,7 @@ class FeedSub extends Memcached_DataObject
if ($their_hmac === $our_hmac) { if ($their_hmac === $our_hmac) {
return true; return true;
} }
common_log(LOG_ERR, __METHOD__ . ": ignoring PuSH with bad SHA-1 HMAC: got $their_hmac, expected $our_hmac"); common_log(LOG_ERR, __METHOD__ . ": ignoring PuSH with bad SHA-1 HMAC: got $their_hmac, expected $our_hmac for feed $this->uri on $this->huburi");
} else { } else {
common_log(LOG_ERR, __METHOD__ . ": ignoring PuSH with bogus HMAC '$hmac'"); common_log(LOG_ERR, __METHOD__ . ": ignoring PuSH with bogus HMAC '$hmac'");
} }