will be shut down on June 1, 2019. At that point this instance will be unreachable and all data will be irrevocably deleted. More details at

Commit 45dfa9f2 authored by mmn's avatar mmn

A bit more instructive debugging

parent 64b72a3c
......@@ -93,6 +93,8 @@ class Discovery
// Normalize the incoming $id to make sure we have a uri
$uri = self::normalize($id);
common_debug(sprintf('Performing discovery for "%s" (normalized "%s")', $id, $uri));
foreach ($this->methods as $class) {
try {
$xrd = new XML_XRD();
......@@ -1571,12 +1571,14 @@ class Ostatus_profile extends Managed_DataObject
if (is_null($uri)) {
// Negative cache entry
// TRANS: Exception.
throw new Exception(_m('Not a valid webfinger address.'));
throw new Exception(_m('Not a valid webfinger address (via cache).'));
$oprofile = Ostatus_profile::getKV('uri', $uri);
if ($oprofile instanceof Ostatus_profile) {
return $oprofile;
common_log(LOG_ERR, sprintf(__METHOD__ . ': Webfinger address cache inconsistent with database, did not find Ostatus_profile uri==%s', $uri));
self::cacheSet(sprintf('ostatus_profile:webfinger:%s', $addr), false);
// Try looking it up
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment