mirror of https://github.com/apache/druid.git
TaskLocation: Add toString method.
Necessary because these objects are used in log messages.
This commit is contained in:
parent
c82b680cd4
commit
acd95d3e28
|
@ -82,4 +82,13 @@ public class TaskLocation
|
|||
{
|
||||
return Objects.hash(host, port);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "TaskLocation{" +
|
||||
"host='" + host + '\'' +
|
||||
", port=" + port +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue