mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-12-06 11:17:20 +00:00
[TASK] Added exception type to file name
This commit is contained in:
1 file changed
+1
-1
@@ -39,7 +39,7 @@ public class FileExceptionHandler extends ExceptionHandler {
|
||||
|
||||
@Override
|
||||
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 {
|
||||
report.createNewFile();
|
||||
|
||||
|
||||
Reference in new issue
Block a user