This commit is contained in:
Xephi
2016-02-05 13:24:38 +01:00
parent e8a9b5c2e2
commit 4f76398ce8
15 changed files with 50 additions and 77 deletions
@@ -74,10 +74,11 @@ public final class ConsoleLogger {
*
* @param ex Exception
*/
public static void writeStackTrace(Exception ex) {
public static void writeStackTrace(String message , Throwable ex) {
if (!Settings.useLogging) {
return;
}
writeLog(message);
writeLog(Throwables.getStackTraceAsString(ex));
}
}