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:
		@@ -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'");
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user