mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-21 21:31:34 +01:00
Improve error logging
This commit is contained in:
parent
0058dd8c63
commit
2215dea369
@ -49,6 +49,7 @@
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
|
||||
public class DebugCommand extends MinepacksCommand
|
||||
{
|
||||
@ -126,7 +127,7 @@ private void debugSystem(final @NotNull CommandSender commandSender)
|
||||
writer.close();
|
||||
writer = null;
|
||||
}
|
||||
catch(Exception e) {e.printStackTrace();}
|
||||
catch(Exception e) { plugin.getLogger().log(Level.SEVERE, "Error while writing debug file.", e);}
|
||||
sender.getInventory().setItem(0, slot);
|
||||
messageDone.send(sender);
|
||||
}, 30*20L);
|
||||
|
Loading…
Reference in New Issue
Block a user