Fixed error and added debug messages

This commit is contained in:
Anthony committed 2018-02-17 20:56:19 -05:00
1 parent 072bcb0211
commit d08c95ea8b
2 files changed
+6 -4

No files matched your search

@@ -61,6 +61,6 @@ public class TableModel {
@Override
public String toString() {
return "Column: [" + column + "], Rows: [" + rows + "]";
return "Column: [" + column + "], Rows (" + getNbRows() + "): [" + rows + "]";
}
}
@@ -1,5 +1,6 @@
package netneutrality.handler;
import netneutrality.MusicBot;
import netneutrality.utils.Settings;
public class LogHandler {
@@ -7,11 +8,12 @@ public class LogHandler {
/**
* Log the exception to the owner's log TextChannel as defined in {@link Settings#getLogChannel()}
*
* @param t The exceptions to log
* @param e The exceptions to log
*/
public static void log(Throwable t) {
public static void log(Exception e) {
Settings.getLogChannel().sendMessage("Error : " + t.getMessage()).queue();
MusicBot.LOGGER.error(e.getMessage());
Settings.getLogChannel().sendMessage("Error : " + e.getMessage()).queue();
}
}