Improved lifecycle error logging

This commit is contained in:
Auxilor
2023-04-13 11:50:32 -04:00
parent 55344e0550
commit ee36cc74f8

View File

@@ -650,6 +650,7 @@ public abstract class EcoPlugin extends JavaPlugin implements PluginLike, Regist
task.run();
} catch (final Exception e) {
this.getLogger().log(Level.SEVERE, "Error while running lifecycle task ", e);
this.getLogger().log(Level.SEVERE, "The plugin may not function properly!");
e.printStackTrace();
}
}
@@ -658,6 +659,7 @@ public abstract class EcoPlugin extends JavaPlugin implements PluginLike, Regist
handler.run();
} catch (final Exception e) {
this.getLogger().log(Level.SEVERE, "Error while running lifecycle handler ", e);
this.getLogger().log(Level.SEVERE, "The plugin may not function properly!");
e.printStackTrace();
}
@@ -666,6 +668,7 @@ public abstract class EcoPlugin extends JavaPlugin implements PluginLike, Regist
task.run();
} catch (final Exception e) {
this.getLogger().log(Level.SEVERE, "Error while running lifecycle task ", e);
this.getLogger().log(Level.SEVERE, "The plugin may not function properly!");
e.printStackTrace();
}
}