forked from LogBlock/LogBlock
Log stack traces for some more exceptions
This commit is contained in:
@ -85,7 +85,7 @@ public class LogBlock extends JavaPlugin {
|
|||||||
} catch (final NullPointerException ex) {
|
} catch (final NullPointerException ex) {
|
||||||
getLogger().log(Level.SEVERE, "Error while loading: ", ex);
|
getLogger().log(Level.SEVERE, "Error while loading: ", ex);
|
||||||
} catch (final Exception ex) {
|
} catch (final Exception ex) {
|
||||||
getLogger().severe("Error while loading: " + ex.getMessage());
|
getLogger().log(Level.SEVERE, "Error while loading: " + ex.getMessage(), ex);
|
||||||
errorAtLoading = true;
|
errorAtLoading = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -272,7 +272,7 @@ public class LogBlock extends JavaPlugin {
|
|||||||
getLogger().log(Level.SEVERE, "Error while fetching connection: ", ex);
|
getLogger().log(Level.SEVERE, "Error while fetching connection: ", ex);
|
||||||
connected = false;
|
connected = false;
|
||||||
} else {
|
} else {
|
||||||
getLogger().severe("MySQL connection lost");
|
getLogger().log(Level.SEVERE, "MySQL connection lost", ex);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user