Adding ToString() to ExceptionEvent (#12027)

For readable output for exception events, while generating the report in SeekableStreamSupervisor
This commit is contained in:
Karan Kumar 2021-12-06 13:37:16 +05:30 committed by GitHub
parent 1f052b43c5
commit 2539b7a748
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -289,5 +289,15 @@ public class SupervisorStateManager
.findFirst()
.orElse(Exception.class.getName());
}
@Override
public String toString()
{
return "ExceptionEvent{" +
"timestamp=" + timestamp +
", exceptionClass='" + exceptionClass + '\'' +
", message='" + message + '\'' +
'}';
}
}
}