Reduced usage of e.printStackTrace

This commit is contained in:
Rsl1122 2018-05-25 11:37:37 +03:00
parent 11d98d491a
commit a333a24c0a
2 changed files with 3 additions and 2 deletions

View File

@ -109,7 +109,7 @@ public class GeoInfoTable extends UserIDTable {
} }
}); });
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); Log.toLog(this.getClass(), e);
} }
} }
}); });

View File

@ -43,7 +43,7 @@ public class ShutdownUpdateHook extends Thread {
downloadNewJar(available, newJar); downloadNewJar(available, newJar);
registerOldJarForDeletion(pluginsFolder, newJar); registerOldJarForDeletion(pluginsFolder, newJar);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); Log.toLog(ShutdownUpdateHook.class, e);
} }
} }
@ -129,6 +129,7 @@ public class ShutdownUpdateHook extends Thread {
try { try {
((URLClassLoader) classLoader).close(); ((URLClassLoader) classLoader).close();
} catch (IOException e) { } catch (IOException e) {
// Loggers may be unavailable.
e.printStackTrace(); e.printStackTrace();
} }
} }