Improve stack trace logging

Shorten log signatures
Add task to download recorded autos
This commit is contained in:
nathanrsxtn
2022-02-25 01:33:32 -07:00
parent 9ccf4bcea2
commit 9d5d58f032
9 changed files with 117 additions and 93 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ public final class Main {
*/
public static void main(String... args) {
AnsiLogging.systemInstall();
DurianPlugins.register(Errors.Plugins.Log.class, e -> Logger.getLogger(e.getStackTrace()[0].getClassName()).log(Level.SEVERE, e, e::getLocalizedMessage));
DurianPlugins.register(Errors.Plugins.Log.class, e -> Logger.getLogger(e.getStackTrace()[0].getClassName().substring(e.getStackTrace()[0].getClassName().lastIndexOf('.') + 1)).log(Level.SEVERE, e, e::getLocalizedMessage));
RobotBase.startRobot(Robot::new);
}
}