Fixed error and added debug messages
This commit is contained in:
1 parent
072bcb0211
commit
d08c95ea8b
2 files changed
+7
-5
No files matched your search
@@ -61,6 +61,6 @@ public class TableModel {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "Column: [" + column + "], Rows: [" + rows + "]";
|
return "Column: [" + column + "], Rows (" + getNbRows() + "): [" + rows + "]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
package netneutrality.handler;
|
package netneutrality.handler;
|
||||||
|
|
||||||
|
import netneutrality.MusicBot;
|
||||||
import netneutrality.utils.Settings;
|
import netneutrality.utils.Settings;
|
||||||
|
|
||||||
public class LogHandler {
|
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()}
|
* 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();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user