Overridden toString() for FailureTask to print the failure.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2018-02-07 15:40:30 +01:00
parent ec769390b8
commit 56a2a00812
1 changed files with 6 additions and 0 deletions

View File

@ -428,5 +428,11 @@ public class HttpChannelOverHTTP2 extends HttpChannel implements Closeable, Writ
callback.failed(x);
}
}
@Override
public String toString()
{
return String.format("%s@%x[%s]", getClass().getName(), hashCode(), failure);
}
}
}