Improve error logging

This commit is contained in:
GeorgH93 2023-07-19 21:08:45 +02:00
parent 0058dd8c63
commit 2215dea369
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
1 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ import java.io.*;
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 @@ public class DebugCommand extends MinepacksCommand
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);