mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 08:39:12 +00:00
[TASK] Added exception type to file name
This commit is contained in:
@@ -39,7 +39,7 @@ public class FileExceptionHandler extends ExceptionHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(Throwable e) {
|
public void handle(Throwable e) {
|
||||||
File report = new File(this.reportsDirectory, "report-" + (System.currentTimeMillis() / 1000) + ".txt");
|
File report = new File(this.reportsDirectory, "report-" + this.getExceptionType().getName().toLowerCase() + "-" + (System.currentTimeMillis() / 1000) + ".txt");
|
||||||
try {
|
try {
|
||||||
report.createNewFile();
|
report.createNewFile();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user